Skip to content

Commit 744373e

Browse files
committed
[profiletool] fix importing geojson files on firefox on linux (geosolutions-it#9912)
for some reason mimetype is detected as application/geo+json
1 parent ca1bdef commit 744373e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

web/client/plugins/longitudinalProfile/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const LONGITUDINAL_VECTOR_LAYER_ID_POINT = 'longitudinal_profile_tool_poi
1515
export const LONGITUDINAL_OWNER = 'LongitudinalTool';
1616
export const FILE_TYPE_ALLOWED = [
1717
"application/json",
18+
"application/geo+json",
1819
"image/x-dxf",
1920
"image/vnd.dxf",
2021
"application/x-zip-compressed",

web/client/plugins/longitudinalProfile/enhancers/processFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const readFile = (onWarnings) => (file) => {
5151
const projectionDefs = getConfigProp('projectionDefs') || [];
5252
const supportedProjections = (projectionDefs.length && projectionDefs.map(({code}) => code) || []).concat(["EPSG:4326", "EPSG:3857", "EPSG:900913"]);
5353
// [ ] change this to use filterCRSList
54-
if (type === 'application/json') {
54+
if (type === 'application/json' || type === 'application/geo+json') {
5555
return readJson(file).then(f => {
5656
const projection = get(f, 'map.projection') ?? parseURN(get(f, 'crs'));
5757
if (projection) {

0 commit comments

Comments
 (0)