英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论