【发布时间】:2018-03-20 14:53:05
【问题描述】:
我在 Node.js 中使用 Cloud Functions for Firebase,在其中我使用 excel4node lib 从对象导出 excel 文档,现在的问题是,在 wb.write('Excel.xlsx'); 之后,我必须将该 excel 文件实际保存在某处,然后才能将其发送到用户可以下载它的前端。
我想做什么:
我知道 Firebase 有 Cloud Storage,但由于某些奇怪的原因,只有 google 知道,根据这篇文章:TypeError: firebase.storage is not a function Firebase Storage 不再与 Node.js 一起使用。
我还阅读了有关 Google Cloud 存储的信息,但这只是通过付费服务。
这里有一个教程:https://mashe.hawksey.info/2017/06/cloud-functions-for-firebase-in-google-apps-script/,但你需要有一个付费计划。
我的问题是:是否有任何免费的方法可以使用 firebase 和 Nodejs 进行此导出,以便我能够将导出的 excel 保存在某处并将其输出到前端,以便从用户那里下载?
【问题讨论】:
标签: node.js firebase google-cloud-platform google-cloud-functions