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
Describe the bug
A user recently reported to me that they received a 413 - Request Entity Too Large error when attempting to import a file larger than 2MB. While I don't have the exact file they used, I was able to replicate the behavior by attempting to upload a shortcut file that pointed to a larger exe. This was not caught by the size checker. Additionally, when directly choosing a file over the size limit there is no visual indicator other than the import button being disabled, although I can see in code that there is supposed to be.
Additional context
The primary issue for the user here is moreso that they need a higher file size limit to import their data, the lack of warnings is essentially a secondary issue I noticed when checking myself.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Firefox
- Version: 106
The text was updated successfully, but these errors were encountered:
The bypass issue could probably be solved just by restricting the filepicker to .csv files, since those are the only kinds listed as being valid for import.
When a RequestDataTooBig exception is thrown, users are largely in the dark about what happened and how it can be fixed.
This commit resolves this by inserting middleware to redirect the request to a custom 413 error page.
This exception is thrown when DATA_UPLOAD_MAX_MEMORY_SIZE is exceeded. The default value is 2.5MB.
Fixesbookwyrm-social#2340Fixesbookwyrm-social#2633
Describe the bug
A user recently reported to me that they received a 413 - Request Entity Too Large error when attempting to import a file larger than 2MB. While I don't have the exact file they used, I was able to replicate the behavior by attempting to upload a shortcut file that pointed to a larger exe. This was not caught by the size checker. Additionally, when directly choosing a file over the size limit there is no visual indicator other than the import button being disabled, although I can see in code that there is supposed to be.
To Reproduce
Steps to reproduce the behavior:
OR
Expected behavior
User should be shown clear feedback that the file they have selected is too large.
Screenshots
If applicable, add screenshots to help explain your problem.
Instance
https://books.theunseen.city/
Additional context
The primary issue for the user here is moreso that they need a higher file size limit to import their data, the lack of warnings is essentially a secondary issue I noticed when checking myself.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Firefox
- Version: 106
The text was updated successfully, but these errors were encountered: