wafer2-startup icon indicating copy to clipboard operation
wafer2-startup copied to clipboard

小程序上传视频到腾讯云出错

Open tanxingxuan-wk opened this issue 6 years ago • 3 comments

用了腾讯云的php模板测试上传视频 然后报错了 2e47f5a949086a98c9a2552d120cdc9 问下有小程序上传视频到腾讯云的教程吗

tanxingxuan-wk avatar Apr 11 '18 07:04 tanxingxuan-wk

什么语言的sdk呢?这个应该是做了上传格式的限制,可以自己修改一下。

jas0ncn avatar Apr 11 '18 17:04 jas0ncn

我用的是小程序的 wx.uploadFile 模板是 Wafer2 快速开发 Demo

uploadVideo: function () { var filePaths = this.data.src; console.log(filePaths) wx.uploadFile({ url: config.service.uploadUrl, filePath: filePaths, name: 'file', success: (res) => { console.log(res) }, fail: (res) => { console.log(res) } }) },

传输的视频是mp4格式 请问是哪个文件限制了

tanxingxuan-wk avatar Apr 12 '18 02:04 tanxingxuan-wk

wafer2的哪个语言的demo呢?nodejs还是php? Node.js 只能直接使用 cos 的sdk PHP 版本可以修改 application/controller/upload.php

jas0ncn avatar Apr 12 '18 11:04 jas0ncn