|
@@ -64,6 +64,7 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
|
}
|
|
|
File tempFile = null;
|
|
|
|
|
|
+ FileWriterUtil.checkSpace(file.getSize(),1.1);
|
|
|
try {
|
|
|
String uuid = UUID.randomUUID().toString().replace("-","");
|
|
|
String name = file.getOriginalFilename();
|
|
@@ -81,7 +82,6 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
|
}
|
|
|
//localToOssUtil.uploadOss(tempFile.getPath(), ossPath);
|
|
|
//String url = this.ossUrlPrefix + ossPath;
|
|
|
- FileWriterUtil.checkSpace(file.getSize(),1.1);
|
|
|
String url = CacheUtil.mapping + ossPath;
|
|
|
|
|
|
FileTypeEnum fileTypeEnum = FileTypeEnum.getByType(extName.replace(".", ""));
|