当前位置:网站首页>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
边栏推荐
- Please arrange star trek in advance to break through the new playing method of chain tour, and the market heat continues to rise
- bashdb下载安装
- Chris LATTNER, father of llvm: the golden age of compilers
- Valgrind and kcache grind use run analysis
- Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
- Complete binary search tree (30 points)
- Wechat: get the owner of a single tag
- Go language self-study series | golang method
- GUI编程简介 swing
- Basic usage of synchronized locks
猜你喜欢

LeetCode_ DFS_ Medium_ 1254. Count the number of closed islands
![Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]](/img/67/1f9df4236b0aac3480836d45ab8561.png)
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]

2022-04-22 OpenEBS云原生存储

L2-3 浪漫侧影 (25 分)

Pctp test experience sharing

idea打包 jar文件

Introduction to matlab

資源打包關系依賴樹

爬虫使用xpath解析时返回为空,获取不到相应的元素的原因和解决办法

L2-022 重排链表 (25 分)(map+结构体模拟)
随机推荐
Output first order traversal according to second order and middle order traversal (25 points)
Failed to prepare device for development
After a circle, I sorted out this set of interview questions..
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
Find the sum of simple types of matrices
Error: cannot find or load main class
The K neighbors of each sample are obtained by packet switching
【原创】使用System.Text.Json对Json字符串进行格式化
MySQL查询两张表属性值非重复的数据
Non duplicate data values of two MySQL query tables
Complete binary search tree (30 points)
【IndexOf】【lastIndexOf】【split】【substring】用法详解
Play with binary tree (25 points)
Brief steps to build a website / application using flash and H5
是否同一棵二叉搜索树 (25 分)
LeetCode_ DFS_ Medium_ 1254. Count the number of closed islands
First principle mind map
L2-022 rearrange linked list (25 points) (map + structure simulation)
Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动
Study notes of deep learning (8)

