Closed emaborsa closed 2 years ago
Hi @emaborsa,
.formData
is a helper that takes an key/value map and will instantiate the FormData
object and append
values.
It is not meant to receive an instance of FormData
as an argument.
// Try this:
wretch()
.url('myApi')
.formData({
pictures: files[0]
})
.post()
See here for another example.
The .formData
documentation is not so great, I will definitely add something to make it clearer!
Actually I have the same problem as the other user who posted this issue. My code:
When I run the code, debugging on chrome the payload results empty:
On server side C# I receive the multipart request, but the form is empty: