mars

Firebase Storage

 

Firebase Storage

Firebase Storage component is used to save and download files from an online storage.

Example

Uploading an image file after using Camera component to take a picture.

example



Blocks

upload file

Upload file to path with the given name.

upload file

TYPEEXPLANATIONREQUIRED
Firebase StorageFirebase Storage ComponentYes
StringPath to the file to be uploadedYes
StringName to save the file asYes

download file

Download file from url to given path.

download file

TYPEEXPLANATIONREQUIRED
Firebase StorageFirebase Storage ComponentYes
StringURL of the fileYes
StringPath to save the file toYes

delete file

Delete file at the given Firebase Storage URL.

delete file

TYPEEXPLANATIONREQUIRED
Firebase StorageFirebase Storage ComponentYes
StringURL of the file in Firebase StorageYes

Events

onFailure

Triggered when the file failed to upload or download.

onUploadSuccess

Triggered when the file successfully uploaded.

onUploadProgress

Triggered when the file starts uploading.

onDownloadProgress

Triggered when the file starts downloading.

onDownloadSuccess

Triggered when the file successfully downloaded.

onDeleteSuccess

Triggered when the file is successfully deleted

Post a Comment

0 Comments