You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, both files are actually being delivered but only owlbert.png was returned:
In order to rule out that this was an HTTPBin issue I spun up a small Express server to test this out with multer and the multiple files are returned:
constexpress=require('express')constmulter=require('multer')constupload=multer({dest: 'uploads/'})constapp=express()app.post('/',upload.array('files',12),function(req,res,next){console.log(req.files)})constport=3000;app.listen(port);console.log(`Express app started on port ${port}`);
I also thought that maybe it was because I was sending the payload as files instead of files[], but making a request with that returned similar results:
With the following code that sends multiple files to https://httpbin.org/anything only one of them is returned in the payload.
However, both files are actually being delivered but only
owlbert.png
was returned:In order to rule out that this was an HTTPBin issue I spun up a small Express server to test this out with multer and the multiple files are returned:
And the logged out data from sending the same POST request to http://localhost:3000/:
I also thought that maybe it was because I was sending the payload as
files
instead offiles[]
, but making a request with that returned similar results:The text was updated successfully, but these errors were encountered: