修复上传图片功能

This commit is contained in:
huangdeliang
2021-03-18 14:02:12 +08:00
parent 84c851d1db
commit 683593ba16
2 changed files with 18 additions and 5 deletions

View File

@ -42,6 +42,7 @@ public class SysFileUploadController extends BaseController {
if (StringUtils.isNotEmpty(fileUrl)) {
ajax = AjaxResult.success();
ajax.put("fileUrl", fileUrl);
ajax.put("previewUrl", AliyunOSSUtils.generatePresignedUrl(fileUrl));
ajax.put("fileName", file.getOriginalFilename());
} else {
ajax = AjaxResult.error("文件上传失败");