支付宝小程序uploadfile的坑
代码是微信复制过来的,微信俩中写法都是可以
header: { 'Content-Type': 'application/x-www-form-urlencoded', // 'content-Type': 'application/json', },支付宝只能写 ‘Content-Type’: ‘application/x-www-form-urlencoded’,
my.uploadFile({ url: '请使用自己服务器地址', fileType: 'image', fileName: 'file', filePath: '...', header: { 'Content-Type': 'application/x-www-form-urlencoded', }, success: (res) = { my.alert({ content: '上传成功'}); },});TAG标签: 微信小程序uploadfile
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

