Skip to content

Add upload file size limit#7

Open
boesawer wants to merge 1 commit into
Canopus-Labs:mainfrom
boesawer:add-upload-file-size-limit
Open

Add upload file size limit#7
boesawer wants to merge 1 commit into
Canopus-Labs:mainfrom
boesawer:add-upload-file-size-limit

Conversation

@boesawer
Copy link
Copy Markdown

Summary

  • add a 5MB Multer file size limit to upload middleware
  • keep the existing image type filter and disk storage behavior unchanged

Closes #1

Testing

  • node --check backend/middlewares/uploadMiddleware.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add File Size Limits to Image Uploads

1 participant