uploadfile 安卓上传的问题?
wx.uploadFile({ url: app.globalData.server + '/upload', filePath: imagePath, name: picname, success: function(res) { // console.log("图片上传成功:", res); if (res) { wx.showToast({ title: '已提交发布!', duration: 3000 }); that.createNewOrder(picname); } } }); |
这是我上传图片的代码
ios设备使用正常,但是安卓设备上传的图片无法显示,对比了一下发现文件大小相差非常巨大
比较大的图片是ios设备提交,能正常显示.
小的文件是安卓上传的,无法显示.
请问如何解决,谢谢!
