Skip to content

Commit

Permalink
update mime type for file package #3353
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Feb 8, 2017
1 parent 7d8b467 commit b1be2dc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DataFileServiceBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,17 @@ public class DataFileServiceBean implements java.io.Serializable {

private static final String MIME_TYPE_UNDETERMINED_DEFAULT = "application/octet-stream";
private static final String MIME_TYPE_UNDETERMINED_BINARY = "application/binary";

public static final String MIME_TYPE_PACKAGE_FILE = "application/vnd.edu.harvard.iq.dataverse.file-package";

/**
* Per https://en.wikipedia.org/wiki/Media_type#Vendor_tree just "dataverse"
* should be fine.
*
* @todo Consider registering this at http://www.iana.org/form/media-types
* or switch to "prs" which "includes media types created experimentally or
* as part of products that are not distributed commercially" according to
* the page URL above.
*/
public static final String MIME_TYPE_PACKAGE_FILE = "application/vnd.dataverse.file-package";

public DataFile find(Object pk) {
return (DataFile) em.find(DataFile.class, pk);
Expand Down

0 comments on commit b1be2dc

Please sign in to comment.