

Update (8/14/07): I have a latest post on the Flex File Upload examples. Check it out.
So far, the only thing stops me fully embracing Flex is its lack of file upload capability. The example provided by Macromedia is not that exciting. So, let me try to come up something can be used in a real project.
Utilizing the same concept, by using Flash’s LocalConnection class, I made a starter Flex application. To make it easier to try out, I simulate the actual uploading part, the part web server receives files and do something. File handling are server side are low-tech now for web application. I’d like the starter application can be run without server side file handling so that whoever is interested it can easily try it out, as long as you have a Flex server.
Get the Flex File Upload Project Starter Files from here.
The screen so far looks like:

The design goals are:
I’ll add more goals later and explain the current implementation at next post.
Give it try. To play with it, once unzip and drop everything to a Flex app area, just call the jsp file fileUpload.jsp and see what’ll happen.
If you would like to make a comment, please fill out the form below.
It can’t work at all.
The key problem is the “\” in the file path will disappear when retrieving it to upload.
The actual upload part is the borning http multi-part file upload without Flex involvement. If runing java at backend, here is the best resource to deal with the files received: http://www.onjava.com/pub/a/onjava/2005/07/13/jsfupload.html
BTW, the Flex file upload project is cancelled. Flash 8 beta release and it allows fileload from Flex 1.5. Very nice!
Uploading Files with Flex and JSP or Java
http://crackmyknuckles.blogspot.com/2008/01/uploading-files-with-flex-and-jsp.html
Thank you very much.
nice, thanks