Open leekafai opened 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?
`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?