Browse Source

Update uploadController.js

Crawl 7 years ago
parent
commit
72c38749ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/uploadController.js

+ 1 - 1
controllers/uploadController.js

@@ -22,7 +22,7 @@ const upload = multer({
 	storage: storage,
 	limits: { fileSize: config.uploads.maxSize },
 	fileFilter: function(req, file, cb) {
-		if (config.blockedExtensions.some((extension) => { return path.extname(file.originalname) === extension; })) {
+		if (config.blockedExtensions.some(extension => path.extname(file.originalname) === extension)) {
 			return cb('This file extension is not allowed');
 		}
 		return cb(null, true);