Taro.chooseImage()之后如何上传文件
-
Taro.chooseImage({}).then(res => { res.tempFiles.map(item => { let path = item.path // 得到的path 类型是字符串 blob:http://xxxxxxxxxx //接下来如何上传文件 } })
-
可以使用Taro. uploadFile【https://nervjs.github.io/taro/docs/apis/network/fileTransfer/uploadFile.html#docsNav】