mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 01:09:56 +01:00
Merge pull request #2358 from joe1chen/0.6.x-fix-file-upload
Bug fix - File upload broken due to api changes in 0.6.x.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user