File

Show Deprecated
Not Creatable
Not Replicated

An object that represents an asset loaded from a file on a local disk. Files generate a temporary asset ID in the form rbxtemp:// which can be used in Studio without uploading the asset, but will be destroyed when the File is destroyed or when the Studio session ends. Temporary asset IDs are not shared across collaborative sessions.

The default Name of a File instance will be the filename on disk, excluding the path but including the extension.

Summary

Properties

  • Hidden
    Read Only
    Not Replicated
    Plugin Security
    Read Parallel

    The size of the file on disk, in bytes.

Methods

Properties

Size

Hidden
Read Only
Not Replicated
Plugin Security
Read Parallel

Methods

GetBinaryContents

Plugin Security

Returns

GetTemporaryId

ContentId
Plugin Security

Returns

ContentId

Events