iOS wx.savefile保存的文件在手机上能找到吗
发布于 6 年前 作者 taoming 19129 次浏览 来自 问答
let filePath = '****';

wx.saveFile({

    tempFilePath: filePath,
success (res) {
const savedFilePath = res.savedFilePath
wx.openDocument({
// 可通过 downloadFile 获得,PDF文件路径
           filePath: savedFilePath,
fileType: 'pdf',
success: function (res) {
},
fail: function (res) {
},
complete: function (res) {
}
})
}

})

在 IOS 上面用户无法找到下载文件。有什么对应的解决方案吗。谢谢

2 回复

找不到,只能预览打开看,也不能右上角发送给别人

找不到。。不过可以通过wx.getSavedFileList找到文件,再发给别人

回到顶部