-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoJSON files marked as "Unknown"/"application/octet-stream" #8261
Comments
Hey @kaitlinnewson, really exciting to hear about the previewer. If you're interested, I think a PR similar to #7502 would do the trick. If you'd be interested in making this PR, I can have someone more technical than me confirm that this is the correct path. |
@kaitlinnewson hi! As a workaround, you can set the content type via API when you first upload the file. Check this out from https://guides.dataverse.org/en/5.8/api/native-api.html#add-a-file-to-a-dataset
A better, longer term solution is to add
If you'd like to make a pull request, you can model it off pull request #5934 and pull request #7502. |
@pdurbin I'll take that as a confirmation... :) Thanks! |
Hi Dataverse team,
I'm reporting this issue as I've developed a file previewer for GeoJSON files, but don't believe we can use it without being able to enable it for this specific content type, and in order to do that, GeoJSON files need to be individually identified. Hoping this is possible!
What steps does it take to reproduce the issue?
When does this issue occur?
When uploading GeoJSON files.
What happens?
After uploading a GeoJSON (.geojson) file to Dataverse, the file type displayed in the UI is "Unknown". Through the API, I can see the content type being set as "application/octet-stream". I have checked older files and also uploaded a few geojson files to the Harvard demo (v 5.8). Here's an example of a GeoJSON file in the Harvard DV.
To whom does it occur (all users, curators, superusers)?
All users
What did you expect to happen?
The MIME type should be "application/geo+json". I'm hoping it's possible to detect this (as opposed to it being marked as "application/json" or "text/plain").
Which version of Dataverse are you using?
5.1/5.8
The text was updated successfully, but these errors were encountered: