Jump to top

SettableMetadata

interface

An interface representing all the metadata properties that can be set.

This is used in updateMetadata, put, putString & putFile.

Properties

cacheControl

</>

The 'Cache-Control' HTTP header that will be set on the storage object when it's requested.

cacheControl: string | null;

contentDisposition

</>

The 'Content-Disposition' HTTP header that will be set on the storage object when it's requested.

contentDisposition: string | null;

contentEncoding

</>

The 'Content-Encoding' HTTP header that will be used on the storage object when it's requested.

contentEncoding: string | null;

contentLanguage

</>

The 'Content-Language' HTTP header that will be set on the storage object when it's requested.

contentLanguage: string | null;

contentType

</>

The 'Content-Type' HTTP header that will be set on the object when it's requested.

contentType: string | null;

customMetadata

</>

Additional user-defined custom metadata for this storage object.

customMetadata: { [key: string]: string } | null;

md5hash

</>

You may specify the md5hash of the file in metadata on upload only. It may not be updated via updateMetadata

md5hash: string | null;