The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/storage > uploadString

uploadString() function

Uploads a string to this object's location. The upload is not resumable.

Signature:

export declare function uploadString(ref: StorageReference, value: string, format?: string, metadata?: UploadMetadata): Promise<UploadResult>;

Parameters

Parameter Type Description
ref StorageReference StorageReference where string should be uploaded.
value string The string to upload.
format string The format of the string to upload.
metadata UploadMetadata Metadata for the string to upload.

Returns:

Promise<UploadResult>

A Promise containing an UploadResult