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.