草庐IT

firebase_storage

全部标签

node.js - 无法从 Firebase 集合中删除文件

我按照列出的示例here,但由于API的修改除外新的firebase-tools。exports.clearMessages=functions.runWith({timeoutSeconds:540,memory:'2GB'}).https.onCall(messagesController.clearMessages)exportconstclearMessages=async(data,context)=>{constuid=context.auth.uidconstpath=`users/${uid}/messages`returnfirebase_tools.firestor

node.js - 无法从 Firebase 集合中删除文件

我按照列出的示例here,但由于API的修改除外新的firebase-tools。exports.clearMessages=functions.runWith({timeoutSeconds:540,memory:'2GB'}).https.onCall(messagesController.clearMessages)exportconstclearMessages=async(data,context)=>{constuid=context.auth.uidconstpath=`users/${uid}/messages`returnfirebase_tools.firestor

javascript - Firebase 函数 : How to store simple cookies to remember an authenticated user

这个问题在这里已经有了答案:firebasecloudfunctionwon'tstorecookienamedotherthan"__session"(4个回答)关闭去年。我只是想记住一个用户在5分钟后返回网站并计算观看次数。我这样做了,在使用FirebaseServe时有效,但部署后没有存储cookie。应用程序中的某个位置。app.use(cookieSession({name:'session',keys:['utl__key_s1','utl__key_s2']}));尝试检查session是否存在并且不超过5分钟。functionsessionExists(req){con

javascript - Firebase 函数 : How to store simple cookies to remember an authenticated user

这个问题在这里已经有了答案:firebasecloudfunctionwon'tstorecookienamedotherthan"__session"(4个回答)关闭去年。我只是想记住一个用户在5分钟后返回网站并计算观看次数。我这样做了,在使用FirebaseServe时有效,但部署后没有存储cookie。应用程序中的某个位置。app.use(cookieSession({name:'session',keys:['utl__key_s1','utl__key_s2']}));尝试检查session是否存在并且不超过5分钟。functionsessionExists(req){con

node.js - 修改从loopback-component-storage获取的图片

我正在使用loopback将图像存储到server。我想在保存到服务器之前修改文件的文件名。我还想在保存之前将其转换为另一种缩略图形式。这是我的做法。AtclientsideUpload.upload({url:'/api/containers/container_name/upload',file:file,fileName:"demoImage.jpg",//Additionaldatawithfileparams:{orderId:1,customerId:1}});AtServerSideIamreceivingthequery"params"butnotgettingthe"

node.js - 修改从loopback-component-storage获取的图片

我正在使用loopback将图像存储到server。我想在保存到服务器之前修改文件的文件名。我还想在保存之前将其转换为另一种缩略图形式。这是我的做法。AtclientsideUpload.upload({url:'/api/containers/container_name/upload',file:file,fileName:"demoImage.jpg",//Additionaldatawithfileparams:{orderId:1,customerId:1}});AtServerSideIamreceivingthequery"params"butnotgettingthe"

angularjs - 使用 firebase 托管 nodeJS 应用程序

所以我有这个使用angularJS和nodeJS的网络应用程序。我不想只使用localhost来演示我的项目,因为当我键入“nodeserver.js”然后转到localhost时,它看起来一点也不酷.....由于我打算将Firebase用于数据,我注意到Firebase提供托管。我试过了,但它似乎只托管index.html而不是通过/使用server.js。我已经为服务器定制了文件来使用/更新。那么,如何让FirebaseHosting在托管时使用我的服务器和相关文件?是否可以告诉Firebase,嘿,运行“nodeserver.js”来托管我的index.html?

angularjs - 使用 firebase 托管 nodeJS 应用程序

所以我有这个使用angularJS和nodeJS的网络应用程序。我不想只使用localhost来演示我的项目,因为当我键入“nodeserver.js”然后转到localhost时,它看起来一点也不酷.....由于我打算将Firebase用于数据,我注意到Firebase提供托管。我试过了,但它似乎只托管index.html而不是通过/使用server.js。我已经为服务器定制了文件来使用/更新。那么,如何让FirebaseHosting在托管时使用我的服务器和相关文件?是否可以告诉Firebase,嘿,运行“nodeserver.js”来托管我的index.html?

javascript - 无法在多个文件中拆分 Firebase 函数

我正在使用firebase函数并达到数百个函数,现在很难在单个index.js文件中管理它,如他们的许多示例所示我试图将该函数拆分为多个文件,例如:--firebase.json--functions--node_modules--index.js--package.json--app--groupFunctions.js--authFunctions.js--storageFunctions.js在这个结构中,我将我的函数分为三类,并放入这三个文件groupFunctions.js、authFunctions.js和storageFunctions.js。然后我尝试在index.js

javascript - 无法在多个文件中拆分 Firebase 函数

我正在使用firebase函数并达到数百个函数,现在很难在单个index.js文件中管理它,如他们的许多示例所示我试图将该函数拆分为多个文件,例如:--firebase.json--functions--node_modules--index.js--package.json--app--groupFunctions.js--authFunctions.js--storageFunctions.js在这个结构中,我将我的函数分为三类,并放入这三个文件groupFunctions.js、authFunctions.js和storageFunctions.js。然后我尝试在index.js