UNPKG

voluptasmollitia

Version:
30 lines (18 loc) 1.01 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/storage](./storage.md) &gt; [uploadString](./storage.uploadstring.md) ## uploadString() function Uploads a string to this object's location. The upload is not resumable. <b>Signature:</b> ```typescript export declare function uploadString(ref: StorageReference, value: string, format?: string, metadata?: UploadMetadata): Promise<UploadResult>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | ref | [StorageReference](./storage.storagereference.md) | StorageReference where string should be uploaded. | | value | string | The string to upload. | | format | string | The format of the string to upload. | | metadata | [UploadMetadata](./storage.uploadmetadata.md) | Metadata for the string to upload. | <b>Returns:</b> Promise&lt;[UploadResult](./storage.uploadresult.md)<!-- -->&gt; A Promise containing an UploadResult