0👍
✅
This is working:
uploadData(req, res) {
Logger.info(req.file('file'));
return req.file('file').upload({
adapter: require('skipper-disk'),
saveAs:"hello"
},function onUploadComplete(err,files){
if(err){
console.error("ERROR");
console.log(err);
return res.serverError(err);
}
if(!files.length) {
return res.serverError(new Error('No file Uploaded'))
}
res.ok(files);
});
},
Source:stackexchange.com