|
|
@@ -97,7 +97,7 @@ public class UploadUtil {
|
|
|
String contentType = file.getContentType();
|
|
|
if (!rule.getAllowedMimeTypes().isEmpty() &&
|
|
|
!rule.getAllowedMimeTypes().contains(contentType)) {
|
|
|
- throw new MyException("文件类型不匹配,仅支持: " +
|
|
|
+ throw new MyException("文件类型不匹配,仅支持: " + contentType +
|
|
|
String.join(", ", rule.getAllowedMimeTypes()));
|
|
|
}
|
|
|
}
|