Stay organized with collections
Save and categorize content based on your preferences.
Properties
Optional cacheControl
cacheControl: string | null
Optional contentDisposition
contentDisposition: string | null
Optional contentEncoding
contentEncoding: string | null
Optional contentLanguage
contentLanguage: string | null
Optional contentType
contentType: string | null
customMetadata: {} | null
Optional md5Hash
md5Hash: string | null
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [storage](/docs/reference/js/v8/firebase.storage).\n- UploadMetadata \nObject metadata that can be set at upload.\n\nIndex\n\nProperties\n\n- [cacheControl](/docs/reference/js/v8/firebase.storage.UploadMetadata#cachecontrol)\n- [contentDisposition](/docs/reference/js/v8/firebase.storage.UploadMetadata#contentdisposition)\n- [contentEncoding](/docs/reference/js/v8/firebase.storage.UploadMetadata#contentencoding)\n- [contentLanguage](/docs/reference/js/v8/firebase.storage.UploadMetadata#contentlanguage)\n- [contentType](/docs/reference/js/v8/firebase.storage.UploadMetadata#contenttype)\n- [customMetadata](/docs/reference/js/v8/firebase.storage.UploadMetadata#custommetadata)\n- [md5Hash](/docs/reference/js/v8/firebase.storage.UploadMetadata#md5hash)\n\nProperties\n\nOptional cacheControl \ncacheControl: string \\| null\nInherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[cacheControl](/docs/reference/js/v8/firebase.storage.FullMetadata#cachecontrol) \nServed as the 'Cache-Control' header on object download.\n\nOptional contentDisposition \ncontentDisposition: string \\| null\n| Inherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[contentDisposition](/docs/reference/js/v8/firebase.storage.FullMetadata#contentdisposition)\n\nOptional contentEncoding \ncontentEncoding: string \\| null\nInherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[contentEncoding](/docs/reference/js/v8/firebase.storage.FullMetadata#contentencoding) \nServed as the 'Content-Encoding' header on object download.\n\nOptional contentLanguage \ncontentLanguage: string \\| null\nInherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[contentLanguage](/docs/reference/js/v8/firebase.storage.FullMetadata#contentlanguage) \nServed as the 'Content-Language' header on object download.\n\nOptional contentType \ncontentType: string \\| null\nInherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[contentType](/docs/reference/js/v8/firebase.storage.FullMetadata#contenttype) \nServed as the 'Content-Type' header on object download.\n\nOptional customMetadata \ncustomMetadata: {} \\| null\nInherited from [FullMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata).[customMetadata](/docs/reference/js/v8/firebase.storage.FullMetadata#custommetadata) \nAdditional user-defined custom metadata.\n\nOptional md5Hash \nmd5Hash: string \\| null \nA Base64-encoded MD5 hash of the object being uploaded."]]
Object metadata that can be set at upload.