From bc275e0809779838f4c963f692b8caeda78282ef Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Mon, 3 Jun 2024 14:43:01 +0100 Subject: [PATCH] Adding binary octet stream in allowed mime types --- src/utils/utils.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index 094c7b1d..a9d3877a 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -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'] + }