Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action

metadata()

Returns the metadata of the given binary.

See MetadataCollection for a list of available metadata attributes.

Returns

MetadataCollection

Example

Accessing metadata of the raw (originally uploaded) version of an image:

binary = Scrivito.getClass("Image").all().first().get("blob").raw(); console.log(binary.metadata().get('width')); console.log(binary.metadata().get('contentType'));