node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.
MIT License
7k stars 680 forks source link

Example of using FormData #806

Closed jimmywarting closed 2 years ago

jimmywarting commented 2 years ago

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 commented 2 years ago

Thanks,