4 Replies Latest reply on Feb 21, 2008 6:31 AM by mr5080

    FTP upload with Flex 3

    mr5080
      Is it possible to upload a partiular file, in this case a users answer file, to an FTP site with out any interaction from the user. For example, when they are done the test, upload the answer file to an FTP site (without using cold fusion or asp or .net)?
        • 1. FTP upload with Flex 3
          Sreenivas R Adobe Employee
          You can try using the code avaiable in the following AIR sample

          http://maliboo.pl/projects/FlexFTP/
          • 2. Re: FTP upload with Flex 3
            mr5080 Level 1
            I have downloaded the coded and converted it to work with Flex 3 (changed it to WindowedApplication, and updated the FlexFTP-app.xml file). When i run it, I get the following:
            220 jpl Microsoft FTP Service (Version 5.0).
            USER jhughes
            331 Password required for jhughes.
            PASS *****
            230 User jhughes logged in.
            PASV
            227 Entering Passive Mode (66,109,241,93,12,42).
            LIST
            125 Data connection already open; Transfer starting.
            226 Transfer complete.
            TYPE I
            200 Type set to I.
            PASV
            227 Entering Passive Mode (66,109,241,93,12,43).
            STOR //test.txt
            550 /test.txt: Access is denied.

            It allows me to connect when I have the correct password but it will not allow me to upload or download files. Any ideas?
            • 3. Re: FTP upload with Flex 3
              Sreenivas R Adobe Employee
              Can you do it from command line? It might be some permissions issue on the server side.
              • 4. Re: FTP upload with Flex 3
                mr5080 Level 1
                I have tried another FTP server and recieved this after I logged in and attempted to upload a file (FYI: after I log in, it does not show me a list of files on the server)
                220 ftp.ctsnet.org NcFTPd Server (licensed copy) ready.
                USER ftpjpl
                331 User ftpjpl okay, need password.
                PASS *****
                230 You are user #1 of 50 simultaneous users allowed.
                PASV
                230
                230 Restricted user logged in.
                227 Entering Passive Mode (216,230,123,135,181,27)
                TYPE I
                200 Type okay.
                PASV
                227 Entering Passive Mode (216,230,123,135,181,27)
                STOR //test.txt
                553 Permission denied.

                What permissions should I change on the server to allow the FlexFTP communication to happen?
                Thanks!