修复: 文件名含有特殊字符时无法预览

This commit is contained in:
jerrykcode
2021-08-19 20:25:44 +08:00
parent 2395a489a3
commit 2177aed64f
2 changed files with 22 additions and 0 deletions

View File

@ -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");