js页面//拍照camera:function(that){wx.chooseImage({count:1,sizeType:['original','compressed'],sourceType:["camera"],success:function(res){consttempFilePathsres.tempFilePaths;that.uploadFile(tempFilePaths);},})},//从相册选取album:function(that){wx.chooseImage({count:1,sizeType:['original','compressed'],sourceType:["album"],success:function(res){consttempFilePathsres.tempFilePathsthat.uploadFile(tempFilePaths);},})},//拍摄视频video:function(that){wx.chooseVideo({sourceType:['album','camera'],compressed:'',maxDuration:60,success:function(res){consttempFilePathsres.tempFilePaths;that.uploadFile(tempFilePaths);},})},//上传uploadFile:function(filePath){wx.uploadFile({url:'',filePath:filePath,name:'',header:{},formData:{},success:function(res){},fail:function(res){},complete:function(res){},})}`

TAG标签: 小程序上传图片和视频代码实例怎样给小程序上传视频微信小程序视频上传

http://www.xiaochengxub.com/read-96594.html