SonG0han
11-11-2005, 03:21 PM
hi! can anyone tell me how to set the ascii extensions for auto mode please? could not find it in the help. is it a numindexed table or what? :huh
from the manual:
FTP.SetTransferType (number TransferType);
Description:
Sets the data transfer mode to use when communicating with the server.
TransferType:
(number) The transfer type to use for uploads and downloads:
0: (FTP.ASCII) - ASCII (type A) transfer type.
1: (FTP.BINARY) - Binary (type I) transfer type.
2: (FTP.AUTO) - Automatically choose the appropriate transfer type based on the file extension.
Note: When set to FTP.AUTO, the transfer type will default to FTP.BINARY, unless the file extension is found in the special FTP.ASCII_Extensions string.
Tip: You can control which files will be recognized as ASCII files by modifying the value of FTP.ASCII_Extensions.
Returns:
Nothing.
Example:
-- switch to binary transfer type
FTP.SetTransferType(FTP.BINARY);
from the manual:
FTP.SetTransferType (number TransferType);
Description:
Sets the data transfer mode to use when communicating with the server.
TransferType:
(number) The transfer type to use for uploads and downloads:
0: (FTP.ASCII) - ASCII (type A) transfer type.
1: (FTP.BINARY) - Binary (type I) transfer type.
2: (FTP.AUTO) - Automatically choose the appropriate transfer type based on the file extension.
Note: When set to FTP.AUTO, the transfer type will default to FTP.BINARY, unless the file extension is found in the special FTP.ASCII_Extensions string.
Tip: You can control which files will be recognized as ASCII files by modifying the value of FTP.ASCII_Extensions.
Returns:
Nothing.
Example:
-- switch to binary transfer type
FTP.SetTransferType(FTP.BINARY);