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

Add mimetype for 3D Data readable by the Smithsonian's Voyager app #10760

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private DataFile findDataFileOrDieWrapper(String fileId){
@GET
@AuthRequired
@Path("datafile/{fileId:.+}")
@Produces({"application/xml"})
@Produces({"application/xml","*/*"})
public Response datafile(@Context ContainerRequestContext crc, @PathParam("fileId") String fileId, @QueryParam("gbrecs") boolean gbrecs, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context HttpServletResponse response) /*throws NotFoundException, ServiceUnavailableException, PermissionDeniedException, AuthorizationRequiredException*/ {

// check first if there's a trailing slash, and chop it:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ nf=text/x-nextflow
Rmd=text/x-r-notebook
rb=text/x-ruby-script
dag=text/x-dagman
glb=model/gltf-binary
2 changes: 2 additions & 0 deletions src/main/java/propertyFiles/MimeTypeDisplay.properties
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ video/quicktime=Quicktime Video
video/webm=WebM Video
# Network Data
text/xml-graphml=GraphML Network Data
# 3D Data
model/gltf-binary=3D Model
# Other
application/octet-stream=Unknown
application/x-docker-file=Docker Image File
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/propertyFiles/MimeTypeFacets.properties
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ video/webm=Video
# (anything else that looks like image/* will also be indexed as facet type "Video")
# Network Data
text/xml-graphml=Network Data
# 3D Data
model/gltf-binary=3D Data
# Other
application/octet-stream=Unknown
application/ld+json;\u0020profile\u003d\u0022http\u003a//www.w3.org/ns/json-ld#flattened\u0020http\u003a//www.w3.org/ns/json-ld#compacted\u0020https\u003a//w3id.org/ro/crate\u0022=Metadata
Expand Down
Loading