Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Conversation

@Swanchick
Copy link

No description provided.

@Swanchick Swanchick changed the title Added functionality for FileUpload component forms. [forms] added functionality for FileUpload component Nov 11, 2025
@@ -0,0 +1,114 @@
import { submissions } from '@wix/forms';
import httpClient from 'axios';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any benefit for using axios over simple fetch in this case?

Copy link
Author

@Swanchick Swanchick Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that much actually. It only gives additional field called params, where I can specify filename. Simple fetch doesn't have it.

formId: string,
formValues: FormValues,
): Promise<SubmitResponse> {
console.log('Final form:', formValues);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log('Final form:', formValues);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants