Skip to content

[Backport 2024.02.xx] #10081: fixing .geojson file not supported with mac os (#10082)#10625

Merged
tdipisa merged 1 commit intogeosolutions-it:2024.02.xxfrom
dsuren1:#10081_backport
Oct 24, 2024
Merged

[Backport 2024.02.xx] #10081: fixing .geojson file not supported with mac os (#10082)#10625
tdipisa merged 1 commit intogeosolutions-it:2024.02.xxfrom
dsuren1:#10081_backport

Conversation

@dsuren1
Copy link
Contributor

@dsuren1 dsuren1 commented Oct 23, 2024

#10081: fixing .geojson file not supported with mac os (#10082)

* geosolutions-it#10081
FixBug .geojson file not supported in macos.
- In macOS .geojson file will be identified as type of "application/geo+json". So in checkFileType and readFile functions, they will not go into MIME_LOOKUPS list to find the corresponding type.
- Check first in MIME_LOOKUPS list and then the file.type will solve this problem.
On behalf of DB Systel GmbH

* geosolutions-it#10082
FixBug .geojson file not supported in macos.
- added codes to support geojson in processFiles.jsx
- fixed bug in testData.js in order to give a type by initialing a new File instance

On behalf of DB Systel GmbH

(cherry picked from commit afafc5c)
@dsuren1 dsuren1 added this to the 2024.02.01 milestone Oct 23, 2024
@dsuren1 dsuren1 self-assigned this Oct 23, 2024
@dsuren1 dsuren1 linked an issue Oct 23, 2024 that may be closed by this pull request
@dsuren1 dsuren1 requested a review from tdipisa October 23, 2024 15:22
@tdipisa tdipisa merged commit f7a8995 into geosolutions-it:2024.02.xx Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.geojson file not supported with mac os

3 participants