feat:文件上传校验

dev
wangxy 11 months ago
parent 3a541458ca
commit 74b3e88c32

@ -64,6 +64,9 @@ public class FileRelationController extends BaseController {
@RequestParam(required = false) String filename,
@RequestParam String fileCode) {
try {
if(file.isEmpty()){
throw new ServiceException("上传文件不能为空");
}
// 上传文件路径
String filePath = HypConfig.getUploadPath();
// 上传并返回新文件名称

Loading…
Cancel
Save