Node-RED nodes allowing to interact with Firebase storage. Upload node - allows to upload files to Firebase Storage Bucket
Install from npm
npm install node-red-contrib-firebase-storage
Firebase Upload
Node allows uploading files to Google Firebase File Storage.
Input param is msg.attachments
- array of file description objects to be stored in Firebase bucket.
Each attachment should contain at least fileName
, content
and contentType
properties.
Node output contains msg.downloadUrl
- download URL for uploaded file.
Firebase Download
Node allows resolving file name to download URL.
Input param is msg.fileName
- download file name. Node output contains msg.downloadUrl
- download URL for file.
Firebase configuration properties
projectId
from Firebase config file.apiKey
from Firebase config file.storageBucket
from Firebase config file, eg. "my-project.appspot.com".