File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ export enum Mimetype {
8
8
Png = 'image/png'
9
9
}
10
10
11
- export enum ImageSizeInMB {
11
+ export enum ImageSizeInMb {
12
12
Ten = 10
13
13
}
Original file line number Diff line number Diff line change 1
1
import { Request } from 'express'
2
2
import multer , { FileFilterCallback } from 'multer'
3
3
4
- import { ImageSizeInMB , Mimetype } from '@/constants'
4
+ import { ImageSizeInMb , Mimetype } from '@/constants'
5
5
import { mbToBytes } from '@/utils/math'
6
6
import { joinRelativeToMainPath } from '@/utils/paths'
7
7
@@ -21,7 +21,7 @@ const fileFilter = (
21
21
22
22
const upload = multer ( {
23
23
dest : joinRelativeToMainPath ( process . env . STORAGE_PATH ) ,
24
- limits : { fileSize : mbToBytes ( ImageSizeInMB . Ten ) } ,
24
+ limits : { fileSize : mbToBytes ( ImageSizeInMb . Ten ) } ,
25
25
fileFilter
26
26
} )
27
27
You can’t perform that action at this time.
0 commit comments