Cloud Firestore Connection icon

Cloud Firestore Connection

Interact with Google Cloud Firestore (and Storage)

Upload File

AI-generated

Summary

Uploads a binary file from an input item to a Google Cloud Storage bucket and returns its URL.

Inputs

  • bucketName (required) — The exact name of the Firebase/Cloud Storage bucket (do not include gs://).
  • destinationFolder — The folder path to upload the file to. Leave empty for root. Must end with / if specified.
  • binaryProperty (required) — Name of the binary property on the input item containing the file (e.g., 'data').
  • makePublic — Whether the uploaded file should be made publicly readable (required to return a Firebase public URL).

Output shape

a single JSON object per input item containing success status, URL, and path.

If 'Make Public' is disabled, returns a gs:// URL. If making public fails due to IAM permissions, the operation throws an error.

Examples

Example 1: Upload a file to the root of a bucket

bucketName: 'my-project.appspot.com', binaryProperty: 'data', makePublic: true

Example 2: Upload a file to a specific folder

bucketName: 'my-project.appspot.com', destinationFolder: 'uploads/images/', binaryProperty: 'data'

Discussion