当前位置:网站首页>Project upload part
Project upload part
2022-04-23 09:01:00 【Sang Yinghao】
OSS Universal upload interface
/** * OSS Upload files * @param file * @return */ @PostMapping("/uploadFileByOSS") public ResultJson uploadFileByOSS(MultipartFile file){ try { QueryWrapper<OssConfig> ossConfigQueryWrapper = new QueryWrapper<>(); ossConfigQueryWrapper.last("limit 1"); OssConfig ossConfig = ossConfigService.getOne(ossConfigQueryWrapper); return ResultJson.ok(OssUtils.alibabaUploadFile(file, ossConfig)); } catch (Exception e) { log.error(e.getMessage()); return ResultJson.failure(ResultCode.BAD_REQUEST, e.getMessage()); } }html Add part
<el-form-item prop="thumbnail" label=" thumbnail " :label-width="dialogFormLabelWidth" style="width:325px"> <span> <img width="100%" :src="uploadUrlPath" alt=""> </span> <el-upload drag :action="uploadOSS" :on-success="handleUploadSuccess" :before-upload="handleBeforeUpload" :on-error="handleUploadError" name="file" :show-file-list="false" :headers="headers" > <i class="el-icon-upload"></i> <div class="el-upload__text"> Drag files here , or <em> Click upload </em></div> </el-upload> </el-form-item>
![]()
![]()
![]()
版权声明
本文为[Sang Yinghao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230726461841.html
边栏推荐
- L2-024 部落 (25 分)(并查集)
- Swagger document export custom V2 / API docs interception
- Bk3633 specification
- 【58】最后一个单词的长度【LeetCode】
- Concave hull acquisition method based on convex hull of point cloud
- 根据后序和中序遍历输出先序遍历 (25 分)
- Harbor enterprise image management system
- L2-023 图着色问题 (25 分)(图的遍历)
- Mini - exercice MySQL (seulement pour les débutants, pas pour les non - débutants)
- Multi view depth estimation by fusing single view depth probability with multi view geometry
猜你喜欢

After a circle, I sorted out this set of interview questions..

bashdb下载安装

LaTeX论文排版操作

L2-024 tribe (25 points) (and check the collection)
![[58] length of the last word [leetcode]](/img/c5/3ba1fe5a81593d9576bb597f0d5f45.png)
[58] length of the last word [leetcode]

Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)

php基于哈希算法出现的强弱比较漏洞

Summary of solid problems

Use of Arthas in JVM tools

Test your machine learning pipeline
随机推荐
【原创】使用System.Text.Json对Json字符串进行格式化
MATLAB入门资料
Concave hull acquisition method based on convex hull of point cloud
How to read excel table to database
Failed to prepare device for development
OneFlow學習筆記:從Functor到OpExprInterpreter
Multi view depth estimation by fusing single view depth probability with multi view geometry
请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨
Illegal character in scheme name at index 0:
Automatic differentiation and higher order derivative in deep learning framework
Swagger document export custom V2 / API docs interception
Search tree judgment (25 points)
Download and install bashdb
LaTeX数学公式
扣缴义务人
DJ music management software pioneer DJ rekordbox
Illegal character in scheme name at index 0:
L2-024 部落 (25 分)(并查集)
Withholding agent
Go language self-study series | golang nested structure

