Skip to content

Commit

Permalink
Merge pull request #102 from digital-land/adding_mimeTypes
Browse files Browse the repository at this point in the history
Adding  binary octet stream in allowed mime types
  • Loading branch information
GeorgeGoodall authored Jun 3, 2024
2 parents 505a625 + bc275e0 commit 98037a3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ export const finishedProcessingStatuses = [
]

export const allowedFileTypes = {
csv: ['text/csv', 'text/plain', 'application/octet-stream'],
xls: ['application/vnd.ms-excel', 'application/octet-stream'],
xlsx: ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/octet-stream'],
json: ['application/json', 'application/octet-stream'],
geojson: ['application/vnd.geo+json', 'application/octet-stream'],
gml: ['application/gml+xml', 'application/octet-stream'],
gpkg: ['application/gpkg', 'application/octet-stream'],
sqlite: ['application/geopackage+sqlite3', 'application/octet-stream'],
zip: ['application/zip', 'application/octet-stream']
csv: ['text/csv', 'text/plain', 'application/octet-stream', 'binary/octet-stream'],
xls: ['application/vnd.ms-excel', 'application/octet-stream', 'binary/octet-stream'],
xlsx: ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/octet-stream', 'binary/octet-stream'],
json: ['application/json', 'application/octet-stream', 'binary/octet-stream'],
geojson: ['application/vnd.geo+json', 'application/octet-stream', 'binary/octet-stream'],
gml: ['application/gml+xml', 'application/octet-stream', 'binary/octet-stream'],
gpkg: ['application/gpkg', 'application/octet-stream', 'binary/octet-stream'],
sqlite: ['application/geopackage+sqlite3', 'application/octet-stream', 'binary/octet-stream'],
zip: ['application/zip', 'application/octet-stream', 'binary/octet-stream']

}

0 comments on commit 98037a3

Please sign in to comment.