visionmedia/express — Issue #989: Request an example of multipart file upload using req.files
Author: etlolap
Created: 2012-02-01 00:47:46+00:00
State: open

I have a similar request as https://github.com/visionmedia/express/issues/915, for an up-to-date example of multipart. I am a newbie so I don't know how to move data from req.files to a file.
I checked http://expressjs.com/guide.html, but couldn't find any doc about req.files.
I checked http://www.senchalabs.org/connect/middleware-bodyParser.html, but couldn't find how to use req.files.

Also in this way,
server.use(bodyParser({ uploadDir: '/www/mysite.com/uploads' }));
one Express server can only handle one file upload location? What if a web application needs to provide uploads of photos, video, articles, etc in different pages for different purposes?