public class FileTypeUtil extends Object
| Constructor and Description |
|---|
FileTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getContentType(File file)
This probably has an issue with files named with upper case suffixes, as fileTypeMap.getContentType("foo.PNG")
doesn't work.
|
static String |
getContentType(String fileName) |
Copyright © 2019 Atlassian. All rights reserved.