小程序 wx.uploadFile API 报错
发布于 5 年前 作者 lyu 15465 次浏览 来自 问答

小程序 wx.uploadFile API 报错

uploadFile:fail Cannot read property ‘0’ of null

send: function(){

wx.uploadFile({

url: ‘*.php’,

filePath: this.data.src,

name: ‘image’,

success: function(res){

  // console.log(res.data)

  this.setData({

carData: res.data

  })

 }

})

}

回到顶部