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 > updateMetadata

updateMetadata() function

Updates the metadata for this object.

Signature:

export declare function updateMetadata(ref: StorageReference, metadata: SettableMetadata): Promise<FullMetadata>;

Parameters

Parameter Type Description
ref StorageReference StorageReference to update metadata for.
metadata SettableMetadata The new metadata for the object. Only values that have been explicitly set will be changed. Explicitly setting a value to null will remove the metadata.

Returns:

Promise<FullMetadata>

A promise that resolves with the new metadata for this object.