faceleg / node-pluploader

Process Plupload uploads with style. And events
4 stars 9 forks source link

Where can i put the callback? #8

Open leekafai opened 7 years ago

leekafai commented 7 years ago

`var pluploader = new Pluploader({ uploadLimit: 16, uploadDir: 'saved/' });

pluploader.on('fileUploaded', function(file, req) { console.log(file); });

pluploader.on('error', function(error) { throw error; });

router.post('/upload', function(req, res){ pluploader.handleRequest(req, res) });` I've tried with res.send in the router.post function but it won't work. I want to get the target path to return to client, what can i do?