bookwyrm/bookwyrm
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
..
activitypub fix missing types in BookData file fields 2023-11-08 18:30:49 +11:00
connectors Change import of clean 2023-08-02 19:37:52 +02:00
forms Move MVP 2023-09-18 21:21:04 +10:00
importers Type annotations for bookwyrm.importers 2023-08-21 16:58:16 +02:00
isbn Adds test for invalid isbns and handle isbns with dashes 2023-11-02 19:03:15 -07:00
management Fixes typo and outdated comment 2023-08-01 20:53:06 -07:00
middleware middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
migrations Create notifications for incoming invite requests 2023-11-14 07:09:04 -03:00
models Create notifications for incoming invite requests 2023-11-14 07:09:04 -03:00
static Run stylelint to fix remaining issues 2023-10-18 20:39:12 -03:00
telemetry Added mypy to scripts and workflow, and some first annotations for celerywyrm 2023-07-22 13:27:43 +02:00
templates middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
templatetags id_to_username cleanup 2023-09-26 07:45:45 +10:00
tests Create notifications for incoming invite requests 2023-11-14 07:09:04 -03:00
utils Revert return type for get_or_set 2023-09-13 10:21:30 +02:00
views Create NotificationType as class, not through API 2023-11-09 22:43:36 -03:00
__init__.py
activitystreams.py fix illegal values in redis jobs 2023-08-19 08:34:03 +10:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Add automatic instrumentation to Postgres queries 2023-04-07 01:58:49 -04:00
book_search.py Some small improvements to annotations 2023-07-28 20:54:03 +02:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
preview_images.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
redis_store.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
settings.py middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
signatures.py fix tests and formatting 2023-04-13 22:33:54 +10:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py Enable Azure BlobStorage as an alternative to AWS S3 2023-03-05 12:08:16 -05:00
suggested_users.py fix illegal values in redis jobs 2023-08-19 08:34:03 +10:00
tasks.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Merge pull request #2970 from hughrun/move 2023-11-01 17:14:34 -07:00
wsgi.py