代码提交
This commit is contained in:
parent
55aba9df09
commit
68a9f14a06
|
|
@ -312,7 +312,7 @@ public class FileUtils {
|
||||||
if (!targetDir.exists()) {
|
if (!targetDir.exists()) {
|
||||||
targetDir.mkdirs();
|
targetDir.mkdirs();
|
||||||
}
|
}
|
||||||
String fileName = System.currentTimeMillis() + "_" + file.getOriginalFilename();
|
String fileName = file.getOriginalFilename();
|
||||||
File targetFile = new File(UPLOAD_DIR, fileName);
|
File targetFile = new File(UPLOAD_DIR, fileName);
|
||||||
file.transferTo(targetFile);
|
file.transferTo(targetFile);
|
||||||
String pathName = targetFile.getAbsolutePath();
|
String pathName = targetFile.getAbsolutePath();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue