Firebase iOS SDK 生成的短期下载链接

huangapple go评论58阅读模式
英文:

Short-lived download URL from Firebase iOS SDK

问题

Firebase iOS SDK 通过 Firebase 存储文件获取短期下载 URL 的方法是否存在?FirebaseStorage.StorageReference 中似乎没有相关内容,但显然 Google Cloud 允许签名 URL,因此可能可以在 Google Cloud 层面实现。

英文:

Is there any way to get a short-lived download URL via the Firebase iOS SDK for Firebase Storage files? I don't see anything in FirebaseStorage.StorageReference but apparently Google Cloud allows for signed URLs so maybe there's some way of doing it at the Google Cloud layer?

答案1

得分: 1

Firebase SDKs 无法生成自动过期的只读 URL。Firebase SDKs 可以生成下载 URL,这些 URL 在被撤销之前都是有效的。

如果您需要一个自动过期的 URL,您将需要使用谷歌云的一种服务器端 SDK 生成所谓的签名 URL

英文:

There is no option to generate an auto-expiring, read-only URL through the Firebase SDKs. The Firebase SDKs can generate download URLs, which are valid until they are revoked.

If you want a URL that auto-expires, you'll have to generate a so-called signed URL with one of the Google Cloud, server-side SDKs.

huangapple
  • 本文由 发表于 2023年2月18日 04:21:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/75488934.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定