MilkScript

Automate tasks with MilkScript.

menu

File

Represents a file that can be served from a script. If the file is the last statement in a script, it is returned to a browser where it can be previewed and downloaded.


getBytes()

Gets the data stored in this file.

Return value

ArrayBuffer


getMediaType()

Gets the media type of the data in this file.

Return value

string


getName()

Gets the name of this file.

Return value

The name of this file, if known, or null.