|
|
@@ -67,7 +67,7 @@ public class AliFileUploadController {
|
|
|
String http = commonRepository.findOne(19).getValue();
|
|
|
String[] split = http.split("://");
|
|
|
// 上传文件路径
|
|
|
- String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
|
|
|
+ String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
|
|
|
// 上传并返回新文件名称
|
|
|
String fileName = FileUploadUtils.upload(filePath, file);
|
|
|
String url = http +fileName;
|
|
|
@@ -109,7 +109,7 @@ public class AliFileUploadController {
|
|
|
String http = commonRepository.findOne(19).getValue();
|
|
|
String[] split = http.split("://");
|
|
|
// 上传文件路径
|
|
|
- String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
|
|
|
+ String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
|
|
|
// 上传并返回新文件名称
|
|
|
String fileName = FileUploadUtils.upload(filePath, file);
|
|
|
String url = http +fileName;
|
|
|
@@ -152,7 +152,7 @@ public class AliFileUploadController {
|
|
|
String http = commonRepository.findOne(19).getValue();
|
|
|
String[] split = http.split("://");
|
|
|
// 上传文件路径
|
|
|
- String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
|
|
|
+ String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
|
|
|
// 上传并返回新文件名称
|
|
|
String fileName = FileUploadUtils.upload(filePath, file);
|
|
|
url = http +fileName;
|