|
@@ -148,8 +148,7 @@ public class FdkkSceneEditService {
|
|
if(files !=null && files.getSize() >0){
|
|
if(files !=null && files.getSize() >0){
|
|
String fileName = files.getOriginalFilename();
|
|
String fileName = files.getOriginalFilename();
|
|
assert fileName != null;
|
|
assert fileName != null;
|
|
- String prefix = fileName.substring(fileName.lastIndexOf("."));
|
|
|
|
- String newFilePath = String.format(hotLocalPath,fdkkUploadRequest.getNum()) + "/"+fileName + prefix;
|
|
|
|
|
|
+ String newFilePath = String.format(hotLocalPath,fdkkUploadRequest.getNum()) + "/"+fileName ;
|
|
File newFile = new File(newFilePath);
|
|
File newFile = new File(newFilePath);
|
|
files.transferTo(newFile);
|
|
files.transferTo(newFile);
|
|
path = newFile.getPath();
|
|
path = newFile.getPath();
|