You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
As of right now, as part of the OWASP recommendations for websites, we do not allow uploads of files of arbitrary sizes. Instead the underlying Tomcat server caps the size of all incoming multipart file uploads to 4 MB. The front-end currently has no knowledge of this, and uploading of a file bigger than 4 MB will lead to a strange error.
Add client-side validation on file upload fields that blocks uploads larger than 4 MB.
Add a helpful error message when the file is too large.
Write E2E test that creates a randomly generated file larger than 4 MB and attempts to upload it.
(OPTIONAL) Modify the upload size limit in src/main/resources/application.yml (see comments).
Comments
The 4 MB size limit is defined by us, and we can change it if needed. It might be a good idea to look at the rough size of a ~5 page PDF documents with words and images and adjust this limit accordingly.
The text was updated successfully, but these errors were encountered:
ARMmaster17
added
bug
Something isn't working
blocked
This issue is blocked by a pending PR or another issue that must be resolved first.
Frontend
Changes are expected to be made to HTML/JS/CSS files and the related controllers.
labels
Feb 20, 2022
Summary
As of right now, as part of the OWASP recommendations for websites, we do not allow uploads of files of arbitrary sizes. Instead the underlying Tomcat server caps the size of all incoming multipart file uploads to 4 MB. The front-end currently has no knowledge of this, and uploading of a file bigger than 4 MB will lead to a strange error.
Blocked by #26 and #57
Implementation
src/main/resources/application.yml
(see comments).Comments
The text was updated successfully, but these errors were encountered: