generated from GDGVIT/template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: minor fixes and changes for image
- Loading branch information
Showing
6 changed files
with
135 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const multer = require('multer'); | ||
const path = require('path'); | ||
|
||
const storage = multer.diskStorage({ | ||
// ...existing storage configuration... | ||
}); | ||
|
||
const fileFilter = (req, file, cb) => { | ||
// ...existing filter configuration... | ||
}; | ||
|
||
// Updated multer configuration with limits | ||
const upload = multer({ | ||
storage: storage, | ||
fileFilter: fileFilter, | ||
limits: { | ||
fileSize: 50 * 1024 * 1024, // 50MB in bytes | ||
files: 2 // Maximum number of files | ||
} | ||
}); | ||
|
||
module.exports = upload; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters