We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63627f5 + fc433ad commit 708ee62Copy full SHA for 708ee62
constants/multer.js
@@ -1,4 +1,4 @@
1
module.exports = {
2
- FILE_SIZE_1MB: 1000000, // in bytes, 1000000 bytes = 1MB
3
- PROFILE_FILE_SIZE: 1000000
+ FILE_SIZE_1MB: 1_000_000, // in bytes, 1000000 bytes = 1MB
+ PROFILE_FILE_SIZE: 2_000_000 // Limiting profile upload size to 2MB
4
}
0 commit comments