当前位置:网站首页>微信小程序视频上传组件直接上传至阿里云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 &
边栏推荐
猜你喜欢
51万奖池邀你参战!第二届阿里云ECS CloudBuild开发者大赛来袭
Occt learning 002 - environment construction
365 day challenge leetcode 1000 questions - day 040 design jump table + avoid flooding + find the latest grouping with size M + color ball with reduced sales value
【活动预告】云上数字工厂与中小企业数字化转型创新论坛
携手数字人、数字空间、XR平台,阿里云与伙伴共同建设“新视界”
【C语言系列】— 打印100~200之间的素数
[event preview] cloud digital factory and digital transformation and innovation forum for small and medium-sized enterprises
Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?
NVIDIA Zhou Xijian: the last mile from design to digital marketing
Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team
随机推荐
QtCreator+CMake编译器设置
Xiaolu Inn - Trailer
Solution: find the position of the first and last element in a sorted array (personal notes)
Occt learning 001 - Introduction
递归的基本原理
【C语言系列】— 一道递归小题目
C language one-dimensional array
三次握手四次挥手针对面试总结
第一周总结
365 day challenge leetcode 1000 questions - day 039 full binary tree inserter + find peak II + snapshot array
Helm chart for Kubernetes
Li Yan, CEO of parallel cloud: cloudxr, opens the channel to the metauniverse
JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development
Time complexity and space complexity
Container security open source detection tool - veinmind (mirror backdoor, malicious samples, sensitive information, weak password, etc.)
CSDN的md编辑器如何输入上下标?公式和非公式的输入方式不一样
【剑指offer】— 详解库函数atoi以及模拟实现atoi函数
01-01-osg GL3 环境搭建
CryEngine技术
数千个数据库、遍布全国的物理机,京东物流全量上云实录 | 卓越技术团队访谈录