From a1e54fda23b198cd4d82351fd2676a5bef561c41 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Thu, 6 Nov 2014 17:33:58 -0800 Subject: [PATCH] Bug fix - File upload broken due to api changes in 0.6.x. --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 57f8122b06..9371ed30b4 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, file, next); } }, next); }