Aug 27
Simple FTP app using Flex and Rails
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:
- Reflection on the login page is courtesy of Ben Stucki (http://blog.benstucki.net/?id=20)
- The OSX CSS was created by Adobe Consulting (http://weblogs.macromedia.com/mc/archives/2006/05/mac_os_x-lookin.cfm)
[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.

August 28th, 2006 at 7:23 am
Damn! nice!
August 28th, 2006 at 4:24 pm
What is the username and password to test the application?
[A new account is automatically generated when you enter an unique username]
April 19th, 2007 at 5:36 am
the application is damn good, i need this code if possible pl send me to my id….
thanks in advance,
Sam
April 22nd, 2007 at 7:26 pm
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
April 22nd, 2007 at 10:19 pm
@sam & Farid – I’ve added updated this post to include a link the source files.
Derek
June 19th, 2008 at 6:14 pm
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.
May 25th, 2009 at 3:52 am
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?
June 1st, 2009 at 7:16 pm
@d t
Yep, it’s using HTTP.
August 23rd, 2009 at 1:09 pm
[...] http://flexonrails.net/?p=9http://www.onflex.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php Share and Enjoy: [...]