|
@@ -24,12 +24,10 @@ public enum FileType {
|
|
|
FLV("flvFilePreviewImpl"),
|
|
|
CAD("cadFilePreviewImpl"),
|
|
|
TIFF("tiffFilePreviewImpl"),
|
|
|
- PPT("pptFilePreviewImpl"),
|
|
|
OFD("ofdFilePreviewImpl");
|
|
|
|
|
|
|
|
|
- private static final String[] OFFICE_TYPES = {"docx", "wps", "doc", "xls", "xlsx"};
|
|
|
- private static final String[] PPT_TYPES = {"ppt", "pptx"};
|
|
|
+ private static final String[] OFFICE_TYPES = {"docx", "wps", "doc", "xls", "xlsx", "ppt", "pptx"};
|
|
|
private static final String[] PICTURE_TYPES = {"jpg", "jpeg", "png", "gif", "bmp", "ico", "raw"};
|
|
|
private static final String[] ARCHIVE_TYPES = {"rar", "zip", "jar", "7-zip", "tar", "gzip", "7z"};
|
|
|
private static final String[] TIFF_TYPES = {"tif", "tiff"};
|
|
@@ -68,9 +66,6 @@ public enum FileType {
|
|
|
for (String ofd : OFD_TYPES) {
|
|
|
FILE_TYPE_MAPPER.put(ofd, FileType.OFD);
|
|
|
}
|
|
|
- for (String ppt : PPT_TYPES) {
|
|
|
- FILE_TYPE_MAPPER.put(ppt, FileType.PPT);
|
|
|
- }
|
|
|
FILE_TYPE_MAPPER.put("md", FileType.MARKDOWN);
|
|
|
FILE_TYPE_MAPPER.put("xml", FileType.XML);
|
|
|
FILE_TYPE_MAPPER.put("pdf", FileType.PDF);
|