FIX: Bugs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const multer = require('multer')
|
||||
const AppError = require('../globalErrorHandler/AppError')
|
||||
|
||||
const types = ['png', 'jpg', 'jpeg', 'webp']
|
||||
const types = ['png', 'jpg', 'jpeg', 'webp', 'pdf', 'doc', 'docx', 'xlsx', 'dwg']
|
||||
const formatsText = types.join(' - ')
|
||||
|
||||
const fileFilter = (req, file, cb) => {
|
||||
|
||||
Reference in New Issue
Block a user