File.type

Availability

Flash Media Server 2.

Usage

fileObject.type

Description

Property (read-only); a string specifying the type of data or encoding used when a file is opened. The following strings are supported: "text", "utf8", and "binary". The property is undefined for directories and closed files. If the file is opened in "text" mode and UTF-8 BOM (Byte Order Mark) is detected, the type property is set to "utf8".