voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
30 lines (18 loc) • 1.01 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage](./storage.md) > [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<[UploadResult](./storage.uploadresult.md)<!-- -->>
A Promise containing an UploadResult