PDA

View Full Version : HowTo: set FTP.ASCII_Extensions


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);

SonG0han
12-26-2005, 04:09 PM
nobody knows? :(

SonG0han
12-26-2005, 04:26 PM
(cant edit, sorry for posting again)
I noticed the following: When I foce FTP.BINARY and upload a .jpg image it gets corrupted and is discolored. I have to set it to FTP.AUTO to upload it properly. But .jpg should be binary, right? :huh

SonG0han
10-10-2006, 07:45 AM
I still don't know how to use/change the FTP.ASCII_Extensions yet. Can anyone tell me please? :huh

/edit:
I think I got it now!
I displayed the FTP.ASCII_Extensions content in a Dialog and input object and got this:

.ASP.BAT.C.CFM.CGI.CONF.CPP.CSS.DHTML.DIZ.H.HPP.HT M.HTML.INC.JS.MAK.NFO.PAS.PATCH.PHP.PHTML.PINERC.P L.QMAIL.SH.SHTML.SQL.TCL.TPL.TXT.VBS.

So it's just a list of suffixes without spaces between them and a "." at the end?
I could change the STRING to ".txt.htm." and it will recognice just txt and htm files as ascii, right? :)