Update media type method
This commit is contained in:
parent
b8b968cbdd
commit
afcfb59ae5
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ public class MediaTypeUtil {
|
|||
* @return the mime type
|
||||
*/
|
||||
public static String getMediaTypeFromFilename(String fileName) {
|
||||
String ext = fileName.substring(fileName.lastIndexOf(".") + 1);
|
||||
String ext = fileName.substring(fileName.lastIndexOf('.') + 1);
|
||||
return getMediaTypeFromExt(ext);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue