This commit is contained in:
Julian Lam
2016-02-09 09:45:11 -05:00
parent 2ce64726ba
commit 3a6ad52ac8
3 changed files with 16 additions and 4 deletions

View File

@@ -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);
});
};