|
@@ -36,6 +36,9 @@ public class TencentCosService implements FssService {
|
|
|
if (!file.isFile()) {
|
|
|
throw new StatusException("文件类型错误!");
|
|
|
}
|
|
|
+ if (file.length() == 0) {
|
|
|
+ throw new StatusException("文件大小不能为0!");
|
|
|
+ }
|
|
|
|
|
|
if (StringUtils.isNotEmpty(md5)) {
|
|
|
String realMd5 = FssHelper.getFileMD5(file);
|