Upload file base64
This action allows you to upload a file encoded as base64 to Firebase Storage.
Inputs and Settings

File Base64 string
The string of the file, in base64, that you want to upload to Firebase Storage.
File Name (with extension)
The name you want the file to have on Storage, with it's extension,, since the process of infering which kind of file is being uploaded from a base64 is not always accurate.
Filte String Type
Two options, base64 or data_url:
base64
String of "pure content" in base64. That's the one Bubble provides on the backend, for instance.
VGhpcyBpcyBhIHRleHQgZW5jb2RlZCBpbiBiYXNlNjQ=
data_url
String of metadata + base64 content. If usually starts with "data:MIME-TYPE;base64," followed by the base64 string.
data:text/plain;base64,VGhpcyBpcyBhIHRleHQgZW5jb2RlZCBpbiBiYXNlNjQ
Folder Path

The path of the folder you want to store the file in. The path you specify will generate the folder on Firebase Storage, if it doesn't already exist.
Trigger ID (optional)
This will link the action with a Action Listener of the same ID.
If left blank, all listeners on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.
When the function finishes running, it will trigger the File Uploaded event, storing the Uploaded Uploaded File URL on the listener element states.
Triggered events
Those events are triggered by an Action Listener with the same ID as the Trigger ID provided on the action.
File Uploaded (if the action was successful)
Error in Action (if an error occurs)
Stored values on the listener
Uploaded File URL
The URL of the file uploaded by the action.
Error Message
If an error occurs, you can check its details on this state on the action listener.
Last updated