From 4274f49971e7cee9d7b870b6a0ccce8c7e80f478 Mon Sep 17 00:00:00 2001 From: marwin Date: Sat, 4 Apr 2026 20:48:18 +0200 Subject: [PATCH] Increased ebook upload limit to 50 MB --- diora/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diora/settings.py b/diora/settings.py index d39342e..0efad8b 100644 --- a/diora/settings.py +++ b/diora/settings.py @@ -32,10 +32,10 @@ INSTALLED_APPS = [ 'gpodder', ] -EBOOK_MAX_BYTES = 10 * 1024 * 1024 # 10 MB +EBOOK_MAX_BYTES = 50 * 1024 * 1024 # 50 MB -# Encrypted uploads are base64-encoded (~33% overhead) so allow ~25 MB body -DATA_UPLOAD_MAX_MEMORY_SIZE = 25 * 1024 * 1024 +# Encrypted uploads are base64-encoded (~33% overhead) so allow ~75 MB body +DATA_UPLOAD_MAX_MEMORY_SIZE = 75 * 1024 * 1024 MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware',