Skip to content

Commit

Permalink
fix: allow ext multer
Browse files Browse the repository at this point in the history
  • Loading branch information
masb0ymas committed Feb 12, 2021
1 parent d98ae53 commit ee52f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ConfigMulter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface MulterSetupProps {
const defaultFieldSize = 10 * 1024 * 1024 // 10mb
const defaultFileSize = 1 * 1024 * 1024 // 1mb
const defaultDestination = 'public/uploads/'
const defaultAllowedExt = ['.png', '.jpg', '.jpeg', '.xlsx', '.xls']
const defaultAllowedExt = ['.png', '.jpg', '.jpeg', '.xlsx', '.xls', '.pdf']

const multerSetup = (props: MulterSetupProps) => {
// config storage
Expand Down

0 comments on commit ee52f22

Please sign in to comment.