Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2003
    Posts
    163

    HowTo: set FTP.ASCII_Extensions

    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?


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

  2. #2
    Join Date
    Dec 2003
    Posts
    163
    nobody knows? :(

  3. #3
    Join Date
    Dec 2003
    Posts
    163
    (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?

  4. #4
    Join Date
    Dec 2003
    Posts
    163
    I still don't know how to use/change the FTP.ASCII_Extensions yet. Can anyone tell me please?

    /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?
    Last edited by SonG0han; 10-10-2006 at 06:58 AM.

Similar Threads

  1. HOWTO: Set up an MP3 Playlist
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 11:57 AM
  2. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  3. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  4. HOWTO: Install a Screen Saver
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-27-2002, 01:35 PM
  5. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts