如何从云存储下载文件?

发布于 6 年前作者 tmao5422 次浏览最后编辑 6 年前来自 ask

现在有两个方法

1.通过fileID,然后wx.cloud.getTempFileURL,但是只能获得一个真实链接,真实链接用什么方法能再下载一下?

2.通过fileID,然后wx.cloud.downloadFile,获取tempFilePath.然后wx.saveFile,获取tempFilePath,但是这个tempFilePath看不懂- -,怎么再下载一下?

上图是tempFilePath

2 回复
mlei
mlei1 楼6 年前

接口就是这样,你想得到什么效果