【发布时间】:2018-04-01 07:56:55
【问题描述】:
只是想找出在 firebase 和 google-cloud 中看似微不足道的东西。
好像你正在为 HTML 制作一个 node.js 应用程序(我实际上是通过 Unity 与它交谈,但它是一个桌面应用程序)你不能使用 firebase-storage 出于某种奇怪的原因,你必须使用google-cloud,甚至firebase-admin工具都使用云存储从这里进行存储。
尽管如此,我得到了它的工作,我正在将文件上传到 firebase 存储;但是,问题出在firebase中,您可以指定一个特定文件,然后执行 storage().ref().child(filelocation).GetDownloadURL():这将在一段时间内生成一个可以公开使用的唯一 url ,而不必向所有匿名用户授予读取权限。
我做了一些研究,我需要实现一个叫做 GS UTIL 的东西来生成我自己的特殊 url,但是它太复杂了(我是整个服务器的新手),我什至不知道从哪里开始让它在我的节点服务器上工作。
任何指针?我真的被困在这里了。
-------如果有人感兴趣,这就是我试图做的高水平-----
I'm sending 3d model data to node app from Unity
the node app is publishing this model on sketchfab
then it puts the model data onto my own storage, along with some additional data specially made for my app
after it gets signed to storage, it gets saved to my Firebase DB in my global model database
to be accessed later, by users, to try to get the downloadURL of this storage file and send them all back to Unity users(s)
I would just download the files into my node app, but i wanna reduce any server load, it's supposed to be just a middleman between Unity and Firebase
(i would've done it straight from Unity, but apparently firebase isn't for desktop windows apps).
【问题讨论】:
标签: firebase google-cloud-storage firebase-storage