修复: 文件名含有特殊字符时无法预览
This commit is contained in:
@ -273,6 +273,7 @@ public class FileHandlerService {
|
||||
attribute.setType(type);
|
||||
attribute.setName(fileName);
|
||||
attribute.setSuffix(suffix);
|
||||
url = WebUtils.encodeUrlFileName(url);
|
||||
attribute.setUrl(url);
|
||||
if (req != null) {
|
||||
String officePreviewType = req.getParameter("officePreviewType");
|
||||
|
||||
Reference in New Issue
Block a user