代码提交

This commit is contained in:
liang.chao 2025-09-17 17:59:09 +08:00
parent 55aba9df09
commit 68a9f14a06
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ public class FileUtils {
if (!targetDir.exists()) {
targetDir.mkdirs();
}
String fileName = System.currentTimeMillis() + "_" + file.getOriginalFilename();
String fileName = file.getOriginalFilename();
File targetFile = new File(UPLOAD_DIR, fileName);
file.transferTo(targetFile);
String pathName = targetFile.getAbsolutePath();