mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-04-08 09:17:36 +00:00
修复压缩包 路径错误问题
This commit is contained in:
@@ -474,7 +474,7 @@ public class FileHandlerService implements InitializingBean {
|
|||||||
boolean isCompressFile = !ObjectUtils.isEmpty(compressFileKey);
|
boolean isCompressFile = !ObjectUtils.isEmpty(compressFileKey);
|
||||||
if (isCompressFile) { //判断是否使用特定压缩包符号
|
if (isCompressFile) { //判断是否使用特定压缩包符号
|
||||||
try {
|
try {
|
||||||
originFileName = URLDecoder.decode(originFileName, uriEncoding); //转义的文件名 解下出原始文件名
|
originFileName = URLDecoder.decode(compressFilePath, uriEncoding); //转义的文件名 解下出原始文件名
|
||||||
attribute.setSkipDownLoad(true);
|
attribute.setSkipDownLoad(true);
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
logger.error("Failed to decode file name: {}", originFileName, e);
|
logger.error("Failed to decode file name: {}", originFileName, e);
|
||||||
|
|||||||
Reference in New Issue
Block a user