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,["# UploadMetadata | JavaScript SDK\n\n- [firebase](/docs/reference/node/firebase).\n- [storage](/docs/reference/node/firebase.storage).\n- UploadMetadata\n=================================================================================================================\n\nObject metadata that can be set at upload.\n\nIndex\n-----\n\n### Properties\n\n- [cacheControl](/docs/reference/node/firebase.storage.UploadMetadata#cachecontrol)\n- [contentDisposition](/docs/reference/node/firebase.storage.UploadMetadata#contentdisposition)\n- [contentEncoding](/docs/reference/node/firebase.storage.UploadMetadata#contentencoding)\n- [contentLanguage](/docs/reference/node/firebase.storage.UploadMetadata#contentlanguage)\n- [contentType](/docs/reference/node/firebase.storage.UploadMetadata#contenttype)\n- [customMetadata](/docs/reference/node/firebase.storage.UploadMetadata#custommetadata)\n- [md5Hash](/docs/reference/node/firebase.storage.UploadMetadata#md5hash)\n\nProperties\n----------\n\n### Optional cacheControl\n\ncacheControl: string \\| null\nInherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[cacheControl](/docs/reference/node/firebase.storage.FullMetadata#cachecontrol) \nServed as the 'Cache-Control' header on object download.\n\n### Optional contentDisposition\n\ncontentDisposition: string \\| null\n| Inherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[contentDisposition](/docs/reference/node/firebase.storage.FullMetadata#contentdisposition)\n\n### Optional contentEncoding\n\ncontentEncoding: string \\| null\nInherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[contentEncoding](/docs/reference/node/firebase.storage.FullMetadata#contentencoding) \nServed as the 'Content-Encoding' header on object download.\n\n### Optional contentLanguage\n\ncontentLanguage: string \\| null\nInherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[contentLanguage](/docs/reference/node/firebase.storage.FullMetadata#contentlanguage) \nServed as the 'Content-Language' header on object download.\n\n### Optional contentType\n\ncontentType: string \\| null\nInherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[contentType](/docs/reference/node/firebase.storage.FullMetadata#contenttype) \nServed as the 'Content-Type' header on object download.\n\n### Optional customMetadata\n\ncustomMetadata: {} \\| null\nInherited from [FullMetadata](/docs/reference/node/firebase.storage.FullMetadata).[customMetadata](/docs/reference/node/firebase.storage.FullMetadata#custommetadata) \nAdditional user-defined custom metadata.\n\n### Optional md5Hash\n\nmd5Hash: string \\| null \nA Base64-encoded MD5 hash of the object being uploaded."]]
Object metadata that can be set at upload.