diff --git a/src/routes/api.js b/src/routes/api.js index 57f8122b06..05057e8b37 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -57,7 +57,7 @@ function uploadPost(req, res, next) { if(file.type.match(/image./)) { uploadImage(req.user.uid, file, next); } else { - uploadFile(file, next); + uploadFile(req.user.uid, file, next); } }, next); }