Uploading multiple files seems to be working fine but instead of getting a list of the files uploaded I only get that last file that was uploaded. Note I'm uploading through one file input not multiple file inputs. I would guess multiple inputs would work fine but I don't want to use multiple inputs for this app.
Here is a console.log of req.files
{
"files[]": {
"size": 5593,
"path": "/tmp/app-files/5291c6d4cece951749845fa5881ebb12",
"name": "file-4.csv",
"type": "text/csv",
"mtime": "2014-06-15T13:45:55.808Z"
}
}
I got an array of the uploaded files instead of just the last one after making the changes I suggested ( https://github.com/mcavage/node-restify/commit/fb2c6cb710ae0a5721fb51f429386da0f3c3eb33 )
and adding multiples: true to the options:
server.use(restify.bodyParser({
maxBodySize: 0,
uploadDir: os.tmpdir(),
multiples: true
}));
Most helpful comment
I got an array of the uploaded files instead of just the last one after making the changes I suggested ( https://github.com/mcavage/node-restify/commit/fb2c6cb710ae0a5721fb51f429386da0f3c3eb33 )
and adding multiples: true to the options: