-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit allowed file size to 2MB for image uploads #178
Conversation
lkeegan
commented
Nov 20, 2024
- admin-frontend
- limit upload image file sizes to 2 MB for Milestone and MilestoneGroup images
- display warning modal and ignore files if too large
- limit upload image file sizes to 2 MB for Milestone and MilestoneGroup images
- frontend
- add WarningModal and ImageFileUpload components
- deployment
- set client_max_body_size to 2MB in nginx config
- backend
- remove exif orientation tag if present to avoid unexpected rotation of uploaded images in some cases
- use ImageOps.contain instead of resizing the image
- resolves Image upload file size limits #165
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #178 +/- ##
==========================================
- Coverage 30.04% 29.96% -0.08%
==========================================
Files 99 101 +2
Lines 3245 3267 +22
Branches 87 89 +2
==========================================
+ Hits 975 979 +4
- Misses 2198 2214 +16
- Partials 72 74 +2 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
- admin-frontend - limit upload image file sizes to 2 MB for Milestone and MilestoneGroup images - display warning modal and ignore files if too large - frontend - add WarningModal and ImageFileUpload components - deployment - set client_max_body_size to 2MB in nginx config - backend - remove exif orientation tag if present to avoid unexpected rotation of uploaded images in some cases - use ImageOps.contain instead of resizing the image - resolves #165
0d7743c
to
f9cbeb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. One minor comment wrt usability. I'm not sure if we should fix such things as they appear, or if we should collect them in a meta issue and work through them in a more focused way?
…en the child WarningModal is closed
|