|
@@ -149,11 +149,11 @@ public class UploadServiceImpl implements UploadService {
|
|
|
int index = originalFilename.lastIndexOf(".");
|
|
|
String name = originalFilename.substring(index);
|
|
|
// 图片暂存本地服务器路径
|
|
|
- String filePath = "/mnt/newdatadrive/data/runtime/cloud-instance/server-tools/tempImage";
|
|
|
+ String filePath = "/mnt/newdatadrive/data/runtime/cloud-instance/server-tools/tempImage/";
|
|
|
if ("dev".equals(profile)){
|
|
|
filePath = "D:\\";
|
|
|
}
|
|
|
- filePath += "\\" + randomStr + name;
|
|
|
+ filePath += randomStr + name;
|
|
|
// 临时图片
|
|
|
File tempFile = new File(filePath);
|
|
|
file.transferTo(tempFile);
|