Node.js based forum software built for the modern web
Append file name to the JSON payload returned
Julian Lam18bde866ff98
diff --git a/src/controllers/uploads.js b/src/controllers/uploads.jsindex 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);}