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

SettableMetadata interface

Object metadata that can be set at any time.

Signature:

export interface SettableMetadata 

Properties

Property Type Description
cacheControl? string | undefined (Optional) Served as the 'Cache-Control' header on object download.
contentDisposition? string | undefined (Optional) Served as the 'Content-Disposition' header on object download.
contentEncoding? string | undefined (Optional) Served as the 'Content-Encoding' header on object download.
contentLanguage? string | undefined (Optional) Served as the 'Content-Language' header on object download.
contentType? string | undefined (Optional) Served as the 'Content-Type' header on object download.
customMetadata? { [key: string]: string; } | undefined (Optional) Additional user-defined custom metadata.