bookwyrm/bookwyrm/middleware
Hugh Rundle a7fcd898c2
middleware for displaying 413 page
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.

Fixes #2340
Fixes #2633
2023-11-18 22:10:36 +11:00
..
__init__.py middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
file_too_big.py middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
ip_middleware.py Adds IP blocklist views 2021-09-17 13:04:10 -07:00
timezone_middleware.py Create middleware directory 2021-09-17 11:31:19 -07:00