|
@@ -201,7 +201,7 @@ public class UploadToOssUtil {
|
|
|
public void uploadFileOss(File file,String filePath) {
|
|
|
if(file.isFile()){
|
|
|
String ossPath = file.getPath().replace(filePath,"");
|
|
|
- ossPath = ossPath.replace("/mnt","");
|
|
|
+ ossPath = ossPath.replace("/mnt/","");
|
|
|
ossPath = ossPath.replace("\\","/");
|
|
|
this.uploadOss(file.getPath(),ossPath);
|
|
|
}else {
|