Firebase Storage GS URL到http [英] Firebase Storage gs url to http

查看:94
本文介绍了Firebase Storage GS URL到http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过以下链接下载了一个使用存储在Firebase服务器中的图像的Unity项目: https://zplayer360-86b30.firebaseapp.com

I downloaded a Unity project that use images stored in Firebase server using the following link: https://zplayer360-86b30.firebaseapp.com

现在,我想用自己的文件重现此文件.我使用Firebase控制台创建了一个Firebase项目,手动上传了图像,但是现在我单击复制文件夹URL"按钮,它仅向我提供以下链接: gs://insidehome-29c9e.appspot.com/

Now I want to reproduce this with my own file. I created a Firebase project using Firebase Console, uploaded manually the images, but now I click "copy folder url" button and it provide me only this link: gs://insidehome-29c9e.appspot.com/

我需要一个免费的HTTP公共链接. 我怎么能得到这个?

I need a free HTTP public link. How can I obtain this?

推荐答案

将文件上传到Firebase Storage时,它会自动获取:

When you upload a file to Firebase Storage, it automatically gets:

  • 一个Google Storage URL(以gs://开头),可用于通过Firebase Storage SDK和Google Storage API访问该文件.
  • 下载URL(以https://开头),它是一个公共可读但不可猜测的URL,可用于通过常规HTTP客户端下载URL
  • a Google Storage URL (starting with gs://), which you can use to access the file through the Firebase Storage SDK and the Google Storage API.
  • a download URL (starting with https://), which is a publicly-readable-but-non-guessable URL that you can use to download the URL with regular HTTP clients

您要查找的是第二个URL,您可以在

What you're looking for is the second URL, which you can find in the Firebase Storage console when you select a file:

在右下角,您可以看到文件的下载URL.上传文件时会自动创建其中之一,但是您可以创建更多文件或撤消现有文件.

At the bottom right you can see the download URLs for the file. One of these is auto-created when you upload the file, but you can create more of them or revoke existing ones.

我不确定您所说的免费" URL是什么.该链接是公开可读的,但是下载当然会计入您的Firebase Storage下载配额.

I am not entirely sure what you mean by "free" URL. The link is publicly readable, but downloads will count against your Firebase Storage download quota of course.

这篇关于Firebase Storage GS URL到http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆