mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
JeecgBoot 2.4 微服务正式版本发布,基于SpringBoot的低代码平台
This commit is contained in:
@ -42,6 +42,9 @@ public class SysUploadController {
|
||||
String orgName = file.getOriginalFilename();// 获取文件名
|
||||
orgName = CommonUtils.getFileName(orgName);
|
||||
String file_url = MinioUtil.upload(file,bizPath);
|
||||
if(oConvertUtils.isEmpty(file_url)){
|
||||
return Result.error("上传失败,请检查配置信息是否正确!");
|
||||
}
|
||||
//保存文件信息
|
||||
OSSFile minioFile = new OSSFile();
|
||||
minioFile.setFileName(orgName);
|
||||
|
||||
Reference in New Issue
Block a user