- 苹果手机拍照上传未压缩
chooseImage 接口拍摄图片后上传未压缩; chooseMedia 接口写了sizeType: 'compressed', 没有压缩,并且选择图片时有原图选项 wx.chooseMedia({ count: this.data.count, mediaType: ['image'], sourceType: ['album', 'camera'], sizeType: 'compressed', maxDuration: 10, camera: 'back', success: (res) => { console.log(res) console.log(res.tempFiles.tempFilePath) console.log(res.tempFiles.size) const tempFilePath =res.tempFiles.map(item => item.tempFilePath) console.log(tempFilePath) this.setData({ tempFilePaths:[...this.data.tempFilePaths,...tempFilePath] }) } })
2022-07-05 - wx.uploadFile,能一次上传多张图片么?
用wx.uploadFile,循环上传图片的话,可以一次同时上传几张图片嘛,因为同时还有其他参数要上传,循环的话就一起循环了
2022-05-30