-
Notifications
You must be signed in to change notification settings - Fork 204
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
File type error when uploading file via formData #48
Comments
Looks like .append() method from formdata-node (v2.5.0) is expecting Blob, Stream or Buffer for data (second argument) but @mrbbot/node-fetch is passing a string. |
Hey! 👋 For the next major version of Miniflare, the |
I don't think Browsers will throw you same error when the third argument is set and the second is a string: |
They don't even have FormData parser in their The problem can be solved if you just convert files payload into For latest |
Hey! 👋 The first pre-release of Miniflare 2 has just been released, including support for the |
When trying upload file with formData miniflare is throwing following error:
This error isn't showing when using
wrangler dev
wrangler.toml flags
Simple code to test:
Miniflare version: 1.4.1
The text was updated successfully, but these errors were encountered: