diff --git a/src/controllers/uploads.js b/src/controllers/uploads.js index 487332542e..ac76c8edb1 100644 --- a/src/controllers/uploads.js +++ b/src/controllers/uploads.js @@ -95,7 +95,11 @@ function uploadAsFile(req, uploadedFile, callback) { uploadsController.uploadFile(req.uid, uploadedFile, next); }, function (fileObj, next) { - next(null, { url: fileObj.url }); + console.log(fileObj); + next(null, { + url: fileObj.url, + name: fileObj.name, + }); }, ], callback); }