java.lang.Object | |
↳ | com.atlassian.jira.util.mime.MimeManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If the existing mime type is listed in #GENERIC_MIME_TYPES, then return a suggested
replacement by looking up the file registered under com.atlassian.jira.ContainerRegistrar#MIME_TYPES_INPUTSTREAM_KEY.
| |||||||||||
Suggests a mime type for a file name by looking up the file registered under
com.atlassian.jira.ContainerRegistrar#MIME_TYPES_INPUTSTREAM_KEY.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
If the existing mime type is listed in #GENERIC_MIME_TYPES, then return a suggested replacement by looking up the file registered under com.atlassian.jira.ContainerRegistrar#MIME_TYPES_INPUTSTREAM_KEY. Else return the original mime type.
Useful when uploading files, and the browser is lazy / sets the wrong content type.
existingMimeType | The mime type that we currently know for this file |
---|---|
fileName | The name of the file |
Suggests a mime type for a file name by looking up the file registered under com.atlassian.jira.ContainerRegistrar#MIME_TYPES_INPUTSTREAM_KEY.
fileName | The name of the file |
---|