【发布时间】:2017-05-16 05:42:38
【问题描述】:
我正在将带有 firebase 存储的文件上传到 some/path/file.txt 后来我得到一个下载网址并通过浏览器中的链接提供下载。当用户下载文件时,它被命名为 file.txt
现在我通过 gcloud storage 使用云功能修改此文件。我重新上传它:
bucket.upload(localfile, {destination: 'some/path/file.txt'});
当用户现在下载文件时,浏览器中的建议文件名是:some%2path%2file.txt
有没有办法避免这种情况?
【问题讨论】:
标签: google-cloud-storage firebase-storage