加急 急急急 ios 图片怎么上传不了
发布于 5 年前 作者 pingxie 14478 次浏览 来自 问答

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

7 回复

你代码贴下看看

检查了 没有的

我写的正常上传

 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)

}

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

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

–代码写错了呗

回到顶部