[微信小程序]openDocument API 无法打开saveFile API保存的文件 [打住,再说我报警啦]

- 当前 Bug 的表现(可附上截图)






使用downloadFile API 下载后的临时路径可以打开,而且saveFile API保存的文件无法在手机上找到,使用腾讯文档APP也无法找到


  • wx.downloadFile({  // 示例 url,并非真实存在  url: 'http://example.com/somefile.pdf',  success(res) {    const filePath = res.tempFilePath    wx.openDocument({      filePath:savedFilePath,      success(res) {        console.log('打开文档成功')      }    })  }}) , 说的貌似很有深意,你能一条一条说么?
    • 非常感谢,这种方法确实可行,但是我的需求是要保存在本地,然后再打开文档,如果无法打开本地文档,那么只能退而求其次选择这种方式了, 电脑上只有wps
    • 看下这篇文档 https://developers.weixin.qq.com/miniprogram/dev/framework/ability/file-system.html , 我纯属看戏的呀哈哈哈