|
|
@ -87,7 +87,8 @@ public class FileUploadComponent { |
|
|
|
//2021.10.16 截取文件后缀名以外的名字
|
|
|
|
String prefixName = fileName.substring(0, fileName.indexOf(".")); |
|
|
|
// 新文件名:文件原名称 + ‘-’ + 生成的时间戳 2021.10.16
|
|
|
|
String filePath = prefixName + "_" + dateFileName() + suffixName; |
|
|
|
// String filePath = prefixName + "_" + dateFileName() + suffixName;
|
|
|
|
String filePath = dateFileName() + suffixName; |
|
|
|
if (hasDateDir) { |
|
|
|
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); |
|
|
|
// 增加日期目录
|
|
|
|