收藏
回答

上传云存储超时怎么解决?



回答关注问题邀请回答
收藏

1 个回答

  • o0o有脾气的酸奶
    o0o有脾气的酸奶
    2019-09-19

    弄个代码片段吧

    2019-09-19
    有用
    回复 7
    • 2019-09-19
      wx.chooseImage({ count: 1, //最多9张 sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], success(res) { // tempFilePath可以作为img标签的src属性显示图片 const tempFilePaths = res.tempFilePaths console.log(tempFilePaths) wx.cloud.uploadFile({ cloudPath: 'example.png', filePath: tempFilePaths[0], // 文件路径 }).then(res => { // get resource ID console.log(res.fileID) }).catch(error => { // handle error console.log(error) }) } })
      2019-09-19
      回复
    • o0o有脾气的酸奶
      o0o有脾气的酸奶
      2019-09-19回复

      按照下面链接的方式,弄个能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

      2019-09-19
      回复
    • 2019-09-19
      https://developers.weixin.qq.com/s/WgmFxvmy7rbv
      2019-09-19
      回复
    • 2019-09-19
      在cloud里面
      2019-09-19
      回复
    • 2019-09-19
      麻烦你了
      2019-09-19
      回复
    查看更多(2)
登录 后发表内容
问题标签