From 308afb058e8e165af1b05bff7d3643c6b445573a Mon Sep 17 00:00:00 2001 From: callumlewis05 Date: Tue, 14 Jul 2026 10:06:14 +0200 Subject: [PATCH 1/2] Increased importer max file size --- cds_ils/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cds_ils/config.py b/cds_ils/config.py index 2ee0a1cda..eb996c925 100644 --- a/cds_ils/config.py +++ b/cds_ils/config.py @@ -798,3 +798,9 @@ def query_params_modifier(extra_params): # Feature Toggles ILS_SELF_CHECKOUT_ENABLED = True + +# Enable for local dev to stop CSRF token error +# REST_CSRF_ENABLED = False + +# Enable larger file uploads for importer - 1GiB +MAX_CONTENT_LENGTH = 1000 * 1024 * 1024 \ No newline at end of file From 10ff81442430f7f296e4332ee0974326c51107e7 Mon Sep 17 00:00:00 2001 From: callumlewis05 Date: Tue, 14 Jul 2026 10:19:30 +0200 Subject: [PATCH 2/2] python formatter --- cds_ils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cds_ils/config.py b/cds_ils/config.py index eb996c925..4ed7ea47d 100644 --- a/cds_ils/config.py +++ b/cds_ils/config.py @@ -803,4 +803,4 @@ def query_params_modifier(extra_params): # REST_CSRF_ENABLED = False # Enable larger file uploads for importer - 1GiB -MAX_CONTENT_LENGTH = 1000 * 1024 * 1024 \ No newline at end of file +MAX_CONTENT_LENGTH = 1000 * 1024 * 1024