mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-14 05:03:49 +08:00
* tif图片预览,根据反馈的意见,已经全部修改
1、配置文件、配置项默认值已改回image、tif 2、去掉了静态工具类上的@component 注解 3、修改OnlinePreview处理,在切换image方式预览时url中加入参数previewType=image,加入对应的处理,兼容在pdf预览模式下切换到JPG方式预览
This commit is contained in:
@@ -70,6 +70,10 @@ public class OnlinePreviewController {
|
||||
}
|
||||
FileAttribute fileAttribute = fileHandlerService.getFileAttribute(fileUrl, req);
|
||||
model.addAttribute("file", fileAttribute);
|
||||
|
||||
String previewType = req.getParameter("previewType");
|
||||
model.addAttribute("previewType", previewType);
|
||||
|
||||
FilePreview filePreview = previewFactory.get(fileAttribute);
|
||||
logger.info("预览文件url:{},previewType:{}", fileUrl, fileAttribute.getType());
|
||||
return filePreview.filePreviewHandle(fileUrl, model, fileAttribute);
|
||||
|
||||
Reference in New Issue
Block a user