fix bug 41161 【ie】会议活动--上传凭证--图片显示不出来
This commit is contained in:
+3
-1
@@ -172,8 +172,10 @@ public class CommonController {
|
|||||||
response.setContentType("application/force-download");// 设置强制下载不打开
|
response.setContentType("application/force-download");// 设置强制下载不打开
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
fileName = StringUtils.lowerCase(fileName);
|
fileName = StringUtils.lowerCase(fileName);
|
||||||
if (fileName.contains(".jpg") || fileName.contains(".gif") || fileName.contains(".jpeg")||fileName.contains(".png")) {
|
if (fileName.contains(".jpg") || fileName.contains(".gif") || fileName.contains(".jpeg")) {
|
||||||
response.setContentType("image/jpeg;image/png;image/gif;image/jpg;");
|
response.setContentType("image/jpeg;image/png;image/gif;image/jpg;");
|
||||||
|
}else if (fileName.contains(".png")){
|
||||||
|
response.setContentType("image/png;");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
outputStream = response.getOutputStream();
|
outputStream = response.getOutputStream();
|
||||||
|
|||||||
Reference in New Issue
Block a user