multipart parsing middleware for connect using multiparty
I actually recommend against using this module. It's cleaner to use the multiparty API directly.
This middleware will create temp files on your server and never clean them up. Thus you should not add this middleware to all routes; only to the ones in which you want to accept uploads. And in these endpoints, be sure to delete all temp files, even the ones that you don't use.
var multipart = require'connect-multiparty';var multipartMiddleware = multipart;apppost'/upload' multipartMiddlewareconsole.logreqbody reqfiles;// don't forget to delete all req.files when done;
If you pass options to
multipart(), they are passed directly into