Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group

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'));