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"]