当前位置:网站首页>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 
边栏推荐
- JS数组常用方法
- Array Operations - judgment, de duplication, consolidation, expansion
- JSX 语法
- Nodejs cross domain CORS
- 小程序swiper高度
- From catf1ag two-hour AK match pwn/attack killing, summarize the common command guide of emergency response
- C Programming Language(2nd Edition)--读书笔记--1.5.1
- 07_事件的基本使用
- 小程序嵌入网页向小程序跳转并传参,微信小程序中实现公众号授权获取openId
- promise
猜你喜欢

量化行业知识汇总

Registry hijacking triggers malicious programs

js获取一个文件名的后缀格式

JS get the suffix format of a file name

微信推送-模版消息参数配置

Collection and summary of penetration test information

openGauss内核分析-统计信息与行数估计

gtest与gmock的安装与使用

Cve-2022-34265 Django extract & TRUNC SQL injection vulnerability recurrence

Page layout - three column layout solution
随机推荐
E-commerce background management login
Text indent in uniapp doesn't work, and the indentation in the first line of uniapp doesn't work. How to solve it?
Use bat to automatically execute CMD commands (multiple commands or a single command)
紅日安全靶場3
uni-app微信小程序——商城(8)——订单详情
Determine whether the two timestamps are the same day
mmap的 Bus error问题及解决
How to modify the color of a line of text in the elemtnui table (elemtnui table modifies the color of a line of text)
JS高阶函数 filter/map/reduce
今天的码农女孩总结了关于npm包管理和url模块的笔记
“我的”Bug大全(转载)
markdown编辑器语法——文字颜色、大小、字体与背景色的设置(转载)
How to install the pagoda panel on the server? (pagoda panel installation tutorial)
Uni scroll view pull-down refresh
uni-app微信小程序——商城(3)——商城主页
使用leaflet仿原神提瓦特大地图制作日记
uniapp调用地图,进行位置查询,标记定位
【ElenmentUI el-date-picker日期选择器,结束时间不得早于开始时间,且只能选择距开始时间指定天数的日期】
XXX packages are looking for funding run `npm fund` for details解决方法
uni-app微信小程序——商城(7)——商品详情