Pass in req.user.uid into uploadFile

v1.18.x
Joseph Chen 10 years ago
parent a1e54fda23
commit cd41df5677

@ -57,7 +57,7 @@ function uploadPost(req, res, next) {
if(file.type.match(/image./)) { if(file.type.match(/image./)) {
uploadImage(req.user.uid, file, next); uploadImage(req.user.uid, file, next);
} else { } else {
uploadFile(req.user, file, next); uploadFile(req.user.uid, file, next);
} }
}, next); }, next);
} }

Loading…
Cancel
Save