jquery-file-upload-middleware icon indicating copy to clipboard operation
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"?

Open jackypan1989 opened this issue 11 years ago • 2 comments

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());

jackypan1989 avatar Feb 14 '14 09:02 jackypan1989

Hi there, i have this problem too , you find something to fix it ?!

iraniamir avatar Sep 03 '16 05:09 iraniamir

In my case, all the req.body was moved to req.fields.

ngudbhav avatar Jan 14 '19 20:01 ngudbhav