|
@@ -54,7 +54,7 @@ public class FileMangeServiceImpl implements FileMangeService {
|
|
|
try{
|
|
|
Integer userId = UserUtils.getLoginUser().getUserId();
|
|
|
long fileId = System.currentTimeMillis();
|
|
|
- String fileName = file.getName();
|
|
|
+ String fileName = file.getOriginalFilename();
|
|
|
//路徑为固定存储目录加用户ID加时间戳
|
|
|
String filePath = (path.endsWith("/")?path:path+"/")+ userId + File.pathSeparator +fileId+File.pathSeparator;
|
|
|
File dir = new File(filePath);
|