Seal on forehead according to Revelation 9:4. I did this instead const form = new FormData(); You should NEVER set that header yourself.
Find centralized, trusted content and collaborate around the technologies you use most. headers['Content-Type'] = `multipart/form-data; boundary=${form._boundary}`; multipart File uploads using NodeJS Ask Question Asked 9 years, 10 months ago Modified 1 month ago Viewed 51k times 16 I am having troubles getting file uploads to work with NodeJS. Please be sure to answer the question.Provide details and share your research! Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Web2 try removing the headers 'multipart/form-data' is already set when you use files and add the boundary too Bertrand Martel Mar 20, 2020 at 23:39 also the type= is unnecessary I think Bertrand Martel Mar 20, 2020 at 23:41 When I remove the header, I get an 415, Unsupported Media error. 1 I just noticed, you have set contentType=false while making ajax request. Here are my edits: Thanks for contributing an answer to Stack Overflow! Couldn't use wireshark, its not across the network. body: formData, Can I offset short term capital gain using short term and long term capital losses? Thanks for contributing an answer to Stack Overflow! Connect and share knowledge within a single location that is structured and easy to search. Signals and consequences of voluntary part-time?
Constructing HTTP requests with either a