Server: Uploads -> Videos

This commit is contained in:
Chocobozzz
2016-10-21 11:33:31 +02:00
parent 80a6c9e76f
commit b3d9251015
13 changed files with 24 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ const Video = mongoose.model('Video')
// multer configuration
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, constants.CONFIG.STORAGE.UPLOAD_DIR)
cb(null, constants.CONFIG.STORAGE.VIDEOS_DIR)
},
filename: function (req, file, cb) {