MediaFilePath

An EVML Object used in conjunction with MediaSearch.

Properties
extension String

The extension of the filename.

filename String

The name of the file.

size String

The human-readable file size e.g. "10MB".

url URL

The URL of the file.



Methods
isArchive() Boolean

Returns true if the media path represents a Zip archive by MIME Type.

isAudio() Boolean

Returns true if the media path represents an audio file by MIME Type.

isImage() Boolean

Returns true if the media path represents an image by MIME Type.

isPdf() Boolean

Returns true if the media path represents a PDF by MIME Type.

toImage() Image|null

Returns an Image object if the media path represents an image by MIME Type, or a null value if not.