Skip to content

Node.js based forum software built for the modern web

Bug fix - File upload broken due to api changes in 0.6.x.

Joseph Chena1e54fda23b1
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);
}