Skip to content
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

better detection of RO-Crate files #10015

Closed
ErykKul opened this issue Oct 16, 2023 · 0 comments · Fixed by #10016
Closed

better detection of RO-Crate files #10015

ErykKul opened this issue Oct 16, 2023 · 0 comments · Fixed by #10016
Labels
Feature: File Upload & Handling Type: Feature a feature request User Role: Depositor Creates datasets, uploads data, etc.
Milestone

Comments

@ErykKul
Copy link
Collaborator

ErykKul commented Oct 16, 2023

Overview of the Feature Request
Currently, we can specify mime types for specific files recognized by name in the MimeTypeDetectionByFileName.properties
However, this only works for files without extensions. Some files that have a specific name require an extension, e.g., ro-crate-metadata.json, which is the file containing the RO-Crate metadata. Allowing adding extensions in the MimeTypeDetectionByFileName.properties would then make it possible to recognize these files and give them the correct mime type (e.g., application/ld+json; profile="http://www.w3.org/ns/json-ld#flattened http://www.w3.org/ns/json-ld#compacted https://w3id.org/ro/crate" for the RO-Crate metadata).

What kind of user is the feature intended for?
Depositor, Superuser, Sysadmin

What inspired the request?
RO-Crate previewer (gdcc/dataverse-previewers#41) relies on correct recognition of the RO-Crate metadata files associated with that previewer.

What existing behavior do you want changed?
MimeTypeDetectionByFileName.properties would also be used for recognition of files having extensions.

@pdurbin pdurbin changed the title Feature Request/Idea: better detection of RO-Crate files Oct 17, 2023
@pdurbin pdurbin added Type: Feature a feature request Feature: File Upload & Handling User Role: Depositor Creates datasets, uploads data, etc. labels Nov 12, 2023
@pdurbin pdurbin added this to the 6.3 milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: File Upload & Handling Type: Feature a feature request User Role: Depositor Creates datasets, uploads data, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants