Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of using FormData #806

Merged
merged 1 commit into from
Jan 1, 2022

Conversation

jimmywarting
Copy link
Collaborator

@jimmywarting jimmywarting commented Jan 1, 2022

formdata-polyfill is used by node-fetch as a way to serialize FormData to multipart payloads and it follows the spec to 100% and runs all test agains WPT. (the same serializer is also used by deno and undici)

I thought you would be interested in using it (as discussed earlier)
maybe also for your test cases


so i updated multipart-parser.js in the example dir to construct a multipart payload (with files) with FormData instead of hand crafting a payload

@GrosSacASac
Copy link
Contributor

Thanks,

@GrosSacASac GrosSacASac merged commit b627d79 into node-formidable:master Jan 1, 2022
yarn.lock Show resolved Hide resolved
@jimmywarting jimmywarting deleted the formdata-example branch January 2, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants