Aug 27

Simple FTP app using Flex and Rails

Tag: Flex and RailsDerek Wischusen @ 9:05 pm

Here is a simple app that I put together to demonstrate an integration between Flex and Ruby’s File and Directory utilities. It is not, by any means, meant to be a full FTP application (though I suppose it could, with some work, serve as the foundation for one).

Here is what you can do with it:

  • Create a new account or log into an existing account.
  • Create new subfolders in your account.
  • Upload .txt or .jpg files. Up to 1MB per account (look out Box.net).
  • Download files.
  • Delete files or folders.
  • Move files or folders by dragging them from the right panel dropping them on directory tree.

That’s about it.

Please consider this to be an alpha realease, as I am sure there will be bugs. If you do encounter a bug that you would like to report, please send an email to: bugs at flexonrails dot net

Finally, here is the link to the app: http://www.flexonrails.net/flexftp/public/

I will release the source as soon as I’ve had a chance to fix all the bugs and clean up the code a bit.

Credits:

[UPDATE 04/22/2007]

Ok, I never did get around to cleaning up the code for this app so the code is still in pretty rough shape, but a couple of people asked for the source recently, so I’ve decided to release the source as is in the hopes that at least some small parts of it will be useful to someone.

Download Source Here

9 Responses to “Simple FTP app using Flex and Rails”

  1. Campbell says:

    Damn! nice!

  2. Riley says:

    What is the username and password to test the application?

    [A new account is automatically generated when you enter an unique username]

  3. sam says:

    the application is damn good, i need this code if possible pl send me to my id….

    thanks in advance,
    Sam

  4. Farid says:

    Hi, i need to integrate ftp into an apollo flex app thatt i am building. if posible could you send me the code or let me know when its available.

    many thanks

    Farid

  5. Derek Wischusen says:

    @sam & Farid – I’ve added updated this post to include a link the source files.

    Derek

  6. d t says:

    Hi,
    I just wanted to know whether you are
    using the FTP protocol or giving the user
    FTP like functionality. Since I went through
    your code and couldn’t find where are you
    establishing the ftp connection.

  7. Hadi says:

    Hi,
    I’m a newbie in Flex, I’m using this application to access some files which are under linux ftp service.

    I imported this project and i dono why, but it doesn’t even login. the error is this;

    [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: file:///C:/Documents and Settings/Administrator/My Documents/Flex Builder 3/FlexFTP/bin/users/findUser?userName="]. URL: users/findUser”]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
    at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
    at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
    at DirectHTTPMessageResponder/errorHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:362]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()

    may i get help on this please?

  8. Richard Navarrete says:

    @d t
    Yep, it’s using HTTP.

  9. How to Upload Files in Flex FTP - Ntt.cc says:

Leave a Reply