aboutsummaryrefslogtreecommitdiff
path: root/controllers/uploadController.js
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/uploadController.js')
-rw-r--r--controllers/uploadController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/uploadController.js b/controllers/uploadController.js
index 51c0cf4..342dc30 100644
--- a/controllers/uploadController.js
+++ b/controllers/uploadController.js
@@ -17,7 +17,7 @@ const storage = multer.diskStorage({
destination: function(req, file, cb) {
cb(null, uploadDir);
},
- filename: function(req, file, cb) {
+ filename: function(req, file, cb) {
const access = i => {
const name = randomstring.generate(config.uploads.fileLength) + path.extname(file.originalname);
fs.access(path.join(uploadDir, name), err => {