加急 急急急 ios 图片怎么上传不了

发布于 7 年前作者 pingxie14595 次浏览最后编辑 7 年前来自 ask

跪求大神们正解    在调图片上传接口时,安卓机可以正常上传图片任务,唯独ios上传不了    这是怎么回事

7 回复
guiyingma
guiyingma1 楼6 年前

你代码贴下看看

dwang
dwang2 楼6 年前

检查了 没有的

kchen
kchen3 楼6 年前

我写的正常上传

fangluo
fangluo4 楼6 年前

 getCropperImage() {

    this.wecropper.getCropperImage((filePath) => {

      var self = this;

      console.log(filePath)

      if (filePath) {

        wx.uploadFile({

          url: picture,

          filePath: filePath,

          name: ‘imageFile’,

          formData: {

            openId: openId,

            missionId: missionId,

            activityId: activityId,

            activityConfigureId: activityConfigureId

          },

          header: {

            “Content-Type”: “multipart/form-data”

          },

          success: function(res) {

            console.log(res)

}

chaoshi
chaoshi5 楼6 年前

小程序搜索 青团社兼职实习  然后随便找个小任务 进去后提交任务 就有上传图片的地方

mengping
mengping6 楼6 年前

getCropperImage这个方法没办法接收到参数导致的。因此你的回调函数没有被调用

ytang
ytang7 楼5 年前

–代码写错了呗