Home > @firebase/storage > uploadBytes
uploadBytes() function
Uploads data to this object's location. The upload is not resumable.
Signature:
export declare function uploadBytes(ref: StorageReference, data: Blob | Uint8Array | ArrayBuffer, metadata?: UploadMetadata): Promise<UploadResult>;
Parameters
Parameter | Type | Description |
---|---|---|
ref | StorageReference | StorageReference where data should be uploaded. |
data | Blob | Uint8Array | ArrayBuffer | The data to upload. |
metadata | UploadMetadata | Metadata for the data to upload. |
Returns:
Promise<UploadResult>
A Promise containing an UploadResult