|
@@ -39,7 +39,7 @@ public class AppFileController {
|
|
|
@PostMapping("/upload")
|
|
|
@Operation(summary = "上传文件")
|
|
|
public CommonResult<String> uploadFile(AppFileUploadReqVO reqVO) throws Exception {
|
|
|
- if (!checkFileType(reqVO)) {
|
|
|
+ if (null == reqVO.getPath() || !checkFileType(reqVO)) {
|
|
|
throw exception(MDE_FILE_FORMAT_ERROR);
|
|
|
}
|
|
|
|