|
|
@ -193,7 +193,7 @@ public class LocalFileUtil implements IFileUtil{
|
|
|
|
System.out.println("3");
|
|
|
|
System.out.println("3");
|
|
|
|
String substring = file.getOriginalFilename().substring(i);
|
|
|
|
String substring = file.getOriginalFilename().substring(i);
|
|
|
|
System.out.println("4");
|
|
|
|
System.out.println("4");
|
|
|
|
File destFile = new File(relativePath + File.separator + result+substring);
|
|
|
|
File destFile = new File(relativePath + File.separator + result+".html");
|
|
|
|
System.out.println("5");
|
|
|
|
System.out.println("5");
|
|
|
|
file.transferTo(destFile);
|
|
|
|
file.transferTo(destFile);
|
|
|
|
return "上传成功!";
|
|
|
|
return "上传成功!";
|
|
|
|