mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
closes #4164
This commit is contained in:
@@ -52,7 +52,7 @@ file.base64ToLocal = function(imageData, uploadPath, callback) {
|
||||
file.isFileTypeAllowed = function(path, callback) {
|
||||
// Attempt to read the file, if it passes, file type is allowed
|
||||
jimp.read(path, function(err) {
|
||||
callback(err);
|
||||
callback(err, path);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user