From 8cbef97d95a1bb1e781da68ea55690e27dd2a07f Mon Sep 17 00:00:00 2001 From: James Date: Tue, 29 Nov 2022 09:39:48 +0000 Subject: [PATCH] libcoveweb2: Add "application/octet-stream" content type https://github.com/Open-Telecoms-Data/cove-ofds/issues/60 --- libcoveweb2/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcoveweb2/settings.py b/libcoveweb2/settings.py index 17969cb..263e39e 100644 --- a/libcoveweb2/settings.py +++ b/libcoveweb2/settings.py @@ -174,14 +174,15 @@ }, } -ALLOWED_JSON_CONTENT_TYPES = ["application/json"] +ALLOWED_JSON_CONTENT_TYPES = ["application/json", "application/octet-stream"] ALLOWED_JSON_EXTENSIONS = [".json"] ALLOWED_SPREADSHEET_CONTENT_TYPES = [ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.oasis.opendocument.spreadsheet", + "application/octet-stream", ] ALLOWED_SPREADSHEET_EXTENSIONS = [".ods", ".xlsx"] -ALLOWED_CSV_CONTENT_TYPES = ["text/csv"] +ALLOWED_CSV_CONTENT_TYPES = ["text/csv", "application/octet-stream"] ALLOWED_CSV_EXTENSIONS = [".csv"]