FileType Property  
 

Gets and sets the current file transfer type for FTP transfers.

Syntax

object.FileType [= filetype ]

Remarks

The FileType property specifies the type of file transfer between the local and server. The file transfer types supported are:

Value Constant Description
0 fileTypeAuto The file type should be automatically determined based on the file name extension. If the file extension is unknown, the file type should be determined based on the contents of the file. The control has an internal list of common text file extensions, and additional file extensions can be registered using the AddFileType method.
1 fileTypeASCII The file being transferred is an ASCII text file. The characters the mark the end of a line (for example, a carriage return/linefeed pair under MS-DOS) are automatically converted to the format used by the target operating system. The constant fileTypeText is an alias for this value.
2 fileTypeEBCDIC The file being transferred is a text file created using the EBCDIC character set. If a file is being uploaded, ASCII characters are automatically converted to EBCDIC. If the file is being downloaded, EBCDIC characters are automatically converted to ASCII.
3 fileTypeImage The file is a binary file and no data conversion of any type is performed on the file. This is the default file type for most data files and executable programs. If the type of file cannot be automatically determined, it will always be considered a binary file. If this file type is specified when uploading or downloading text files, the native end-of-line character sequences will be preserved. The constant fileTypeBinary is an alias for this value.

Data Type

Integer (Int32)

See Also

AddFileType Method, GetFile Method, PutFile Method