当前位置:网站首页>微信小程序视频上传组件直接上传至阿里云OSS
微信小程序视频上传组件直接上传至阿里云OSS
2022-07-29 05:09:00 【晶格点阵】
一、微信小程序视频上传组件示例
多视频上传功能,直传OSS,可以直接从OSS删除;组织接受以逗号分隔的视频url地址,自动列出多个视频,但点击上传按钮上传视频后,同样返回以逗号分隔的视频url地址。
bindchange是视频组件上传成功的事件,返回的数据格式为:{e: {detail: {name: '属性名称可根据外部对象属性名称自定义', value: '以逗号分隔的视频地址'}}}
用法:
<form-video-upload-oss title="上传视频" name="videos" value="{
{info.videos}}" noContent="{
{true}}" placeholder="暂未上传视频" btnText="拍摄并上传" sourceType="{
{['camera']}}" path="business_pic/momeplan_video" bindchange="valueChange" isDeleted="{
{saved}}"></form-video-upload-oss> /**
* 处理表单值
*/
valueChange: function (e) {
let name = e.detail.name;
let value = e.detail.value;
let labelName &边栏推荐
猜你喜欢

GPIO的输入输出详解

Occt learning 002 - environment construction

Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?

JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development

Best practices for elastic computing in the game industry

阿里云架构师梁旭:MES on 云盒,助力客户快速构建数字工厂

游戏行业弹性计算最佳实践

【C语言系列】— 不创造第三个变量,实现两个数的交换

刷题狂魔—LeetCode之剑指offer58 - II. 左旋转字符串 详解

365 day challenge leetcode 1000 questions - day 041 two point search completion anniversary + nth magic number + online election
随机推荐
阿里云架构师梁旭:MES on 云盒,助力客户快速构建数字工厂
Occt learning 002 - environment construction
OCCT学习002-----环境搭建
365天挑战LeetCode1000题——Day 036 二叉树剪枝 + 子数组和排序后的区间和 + 删除最短的子数组使剩余数组有序
Helm chart for Kubernetes
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
365天挑战LeetCode1000题——Day 041 二分查找完结纪念 + 第 N 个神奇数字 + 在线选举
Best practices for elastic computing in the game industry
浅谈Servlet
来!看排名一年上升16位的ClickHouse,如何在京东落地实践
Xiaobai high salary shortcut Qt development game Snake
【活动预告】云上数字工厂与中小企业数字化转型创新论坛
321, Jingdong Yanxi × Nlpcc 2022 challenge starts!
Why is Google's internal tools not suitable for you?
直播预告:京东云DevOps与JFrog制品库的融合
【C语言系列】— 不创造第三个变量,实现两个数的交换
QML type: mousearea
CMU15-213 Malloc Lab实验记录
Alibaba cloud Zhang Xintao: heterogeneous computing provides surging power for the digital economy
QtCreator+CMake编译器设置