Skip to content

Commit ee52f22

Browse files
committed
fix: allow ext multer
1 parent d98ae53 commit ee52f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/ConfigMulter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface MulterSetupProps {
1616
const defaultFieldSize = 10 * 1024 * 1024 // 10mb
1717
const defaultFileSize = 1 * 1024 * 1024 // 1mb
1818
const defaultDestination = 'public/uploads/'
19-
const defaultAllowedExt = ['.png', '.jpg', '.jpeg', '.xlsx', '.xls']
19+
const defaultAllowedExt = ['.png', '.jpg', '.jpeg', '.xlsx', '.xls', '.pdf']
2020

2121
const multerSetup = (props: MulterSetupProps) => {
2222
// config storage

0 commit comments

Comments
 (0)