mirror of https://gitee.com/stylefeng/roses
【7.2.5】【file】修复名称错误
parent
5ff54f1fe1
commit
049062e5a0
|
@ -178,6 +178,7 @@ public class FileInfoFactory {
|
|||
|
||||
// 文件大小 kb
|
||||
long fileSizeKb = Convert.toLong(NumberUtil.div(new BigDecimal(file.length()), BigDecimal.valueOf(1024)).setScale(0, BigDecimal.ROUND_HALF_UP));
|
||||
sysFileInfo.setFileSizeKb(fileSizeKb);
|
||||
|
||||
// 计算文件大小信息
|
||||
String fileSizeInfo = FileUtil.readableFileSize(file.length());
|
||||
|
@ -185,7 +186,7 @@ public class FileInfoFactory {
|
|||
|
||||
// 最终存储名称
|
||||
String finalFileName = sysFileInfo.getFileId() + FILE_POSTFIX_SEPARATOR + fileSuffix;
|
||||
sysFileInfo.setFileObjectName(sysFileInfoRequest.getFileObjectName());
|
||||
sysFileInfo.setFileObjectName(finalFileName);
|
||||
|
||||
// 存储的路径
|
||||
sysFileInfo.setFilePath(null);
|
||||
|
|
Loading…
Reference in New Issue