|
|
|
@ -245,7 +245,7 @@ public class LocalFileUtil implements IFileUtil {
|
|
|
|
|
|
|
|
|
|
if (caseName == null)
|
|
|
|
|
{
|
|
|
|
|
File destFile = new File(relativePath + File.separator + result);
|
|
|
|
|
File destFile = new File(relativePath + result);
|
|
|
|
|
|
|
|
|
|
file.transferTo(destFile);
|
|
|
|
|
return;
|
|
|
|
@ -255,7 +255,7 @@ public class LocalFileUtil implements IFileUtil {
|
|
|
|
|
int i = file.getOriginalFilename().lastIndexOf(".");
|
|
|
|
|
String substring = file.getOriginalFilename().substring(i);
|
|
|
|
|
|
|
|
|
|
File destFile = new File(relativePath + File.separator + result+substring);
|
|
|
|
|
File destFile = new File(relativePath+substring);
|
|
|
|
|
|
|
|
|
|
file.transferTo(destFile);
|
|
|
|
|
} catch (FileNotFoundException e) {
|
|
|
|
@ -264,4 +264,6 @@ public class LocalFileUtil implements IFileUtil {
|
|
|
|
|
throw new IllegalArgumentException("上传文件失败,IO错误", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|