当前位置:网站首页>Uniapp development, upload pictures in the app and send them directly to OSS
Uniapp development, upload pictures in the app and send them directly to OSS
2022-07-19 01:36:00 【Little fat man who likes mango】
Project scenario :
Upload pictures directly oss, Do not go through your own server , Save time
Solution :
By selecting pictures for direct transmission oss, Do not go through your own server , adopt uni.chooseImage({})
The required parameters are shown in the figure below , The most important one is filename This field , And what is needed key value ,key Value is a time plus a random number .name Value is to get the following name according to the image path 
Finally using uni.uploadFile({}) Finish uploading 
边栏推荐
- 替换URL中的特殊字符(%E2%80%8B)
- NodeJS 跨域 CORS
- iptables和snort基本配置
- JSX syntax
- Express的使用方法,路由的匹配与使用
- [elementui El date picker date selector, the end time must not be earlier than the start time, and only the date of the specified number of days from the start time can be selected]
- 服务器如何安装宝塔面板?(宝塔面板安装教程)
- (6) Test command
- nmap和nikto扫描
- uni canvas截取图片
猜你喜欢
随机推荐
How to modify the color of a line of text in the elemtnui table (elemtnui table modifies the color of a line of text)
(七)流程控制
Summary of XML external entity injection (xxE target recurrence)
Node的数据库编程(MySQL),增删改查
JSX syntax
2022年暑假ACM热身练习1(总结)
XXX packages are looking for funding run `npm fund` for details解决方法
The applet is embedded in the web page, jumps to the applet and transmits parameters. The wechat applet realizes the authorization of official account to obtain openid
Stack injection [strong net cup 2019] random note
uni-app微信小程序——商城(3)——商城主页
2022年暑假ACM热身练习2(总结)
Vue project deployment, cleaning cache
分布式之数据库和缓存双写一致性方案解析(转载)
Collection and summary of penetration test information
Champ de tir rouge 3
Use leaflet to copy the original shentiwa Mega map to make a diary
Record once easy_ SQL Stack Injection
Promise的基本使用
js替换字符串某个字符,js修改字符串中指定字符
js获取一个文件名的后缀格式









