jquery-file-upload-middleware
jquery-file-upload-middleware copied to clipboard
How can i get the req.body before bodyparser to implement dynamic folder uploading? Should I just use the event "end"?
app.use('/upload', function (req, res, next) { // imageVersions are taken from upload.configure() upload.fileHandler({ uploadDir: function () { return __dirname + '/public/uploads/' + req.body.uid }, uploadUrl: function () { return '/uploads/' + req.body.uid } })(req, res, next); }); app.use(express.bodyParser());
Hi there, i have this problem too , you find something to fix it ?!
In my case, all the req.body was moved to req.fields.