diff --git a/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java b/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java index 64eb43034..8b5504f8a 100755 --- a/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java +++ b/src/main/java/com/labsynch/labseer/utils/MimeTypeUtil.java @@ -26,7 +26,7 @@ public static String getContentTypeFromExtension(String originalFilename) { mimeTypeStream = ApiFileSaveController.class.getClassLoader().getResourceAsStream(MIME_PROP_FILE); Properties mimeTypeProps = new Properties(); mimeTypeProps.load(mimeTypeStream); - contentType = mimeTypeProps.getProperty(fileExtension); + contentType = mimeTypeProps.getProperty(fileExtension.toLowerCase()); logger.debug("here is the file contentType: " + contentType); } catch (IOException e) {