You want to use multiparty to handle uploads. (Connect and therefore Express use multiparty internally when you use
the bodyParser()
or multipart()
middleware.)
You can set the autoFile
option to true and multiparty will automatically store received files in a folder of your choosing (uploadDir
). You can also manually pipe the upload stream to some other destination (ie S3 or GridFS or whatever).