Upload file base64
Last updated
Last updated
This action allows you to upload a file encoded as base64 to Firebase Storage.
The string of the file, in base64, that you want to upload to Firebase Storage.
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.
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
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.
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.
File Uploaded (if the action was successful)
Error in Action (if an error occurs)
The URL of the file uploaded by the action.
If an error occurs, you can check its details on this state on the action listener.
This will link the action with a of the same ID.
When the function finishes running, it will trigger the event, storing the Uploaded on the listener element states.
Those events are triggered by an with the same ID as the provided on the action.