Skip to content

Commit

Permalink
libcoveweb2: Add "application/octet-stream" content type
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Nov 29, 2022
1 parent 222af62 commit 8cbef97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcoveweb2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 8cbef97

Please sign in to comment.