FileUtil.getMimeType增加webp识别

This commit is contained in:
Looly 2023-05-14 23:49:32 +08:00
parent 31f88c5c94
commit 9040c205b8

View File

@ -2695,6 +2695,8 @@ public class FileUtil extends PathUtil {
return "application/x-7z-compressed";
} else if (StrUtil.endWithIgnoreCase(filePath, ".wgt")) {
return "application/widget";
} else if (StrUtil.endWithIgnoreCase(filePath, ".webp")) {
return "image/webp";
}
String contentType = URLConnection.getFileNameMap().getContentTypeFor(filePath);