public final class AttachmentMimeTypeTranslator extends Object
Used to sanitize mime types for file uploads.
|Constructor and Description|
|Modifier and Type||Method and Description|
Resolve a mime type based on the filename.
originalMimeTypemight be used if there is no mime type registered for the given file type.
filename- The name of the file. The file extension will be used to determine the mime type.
originalMimeType- The original mime type. This method might return the original mime type if it can not resolve a proper mime type for the given filename.
Copyright © 2003–2016 Atlassian. All rights reserved.