Uploading files in flex using the filereference class
If you want to allow users to upload multiple files at once, you would use the FileReferenceList class instead of FileReference.
Flex File Uploaded
The component can be configured to include the Accordion image preview display shown in the example below or to just display the upload button and File Uploader browser pop-up. The demo contents automatically resize to 90% of the width/height allocated to the Flash file so can be used as large, medium or small module screen spaces.
Here’s the demo: Purchase Flex File Uploaded here.
If you’re an experienced .NET pro, go ahead and laugh (although suggestions on making the process better are quite welcome). Beginners are welcome to download the files here (MXML and Uploader.ashx).
You can view the demo here. It’s small yet working Flex upload app. the original piece is here. They did a decent job to get upload going. Of cause once you started, in a real world project, you might need a lot more functions such as multiple file selection, etc.
The same guys did the above Flex File Upload Component did this. Sometime people forgot the one important part of the file upload equation is the receiving part. This one explains the sever part using PHP to handle uploaded file.
As we know the Flex Upload is actually use the Flash 8 File Reference object to do the work. The guy who is writing the book ‘Flash 8 Upgrade Essentials’ provided a very detail demo showing how the upload is done within Flash 8. It gives you a good insight on what’s under the hood of Flex file handling.
Multiple Flex File Upload with ColdFusion
This is another good Flex file upload example that handles both client and server ends. The server side is ColdFusion, which is very familiar to lots of Cold fusion-turned Flex developers. I think lots of people use the one as prototype and tailor it fit into their own project. If you are in a ColdFusion shop, this is an excellent start point to deal with file upload issues.
This is the classic article from Adobe to learn the Flex File Upload. I would recommend everybody interested in the come up with a fancy Flex file upload component needs have a good understanding the guts of the File Reference API.
Drag and Drop Flex File Upload with Ruby on Rails
You should know by now this is my favorite solution. This is the best so far I’ve encountered. It’s actually using Flex 3 and Adobe AIR (I start disliking the name). The server side is using the Ruby on Rails gem Merb to handle the received files. All the details are there and are just fascinating to see Flex/AIR works with RoR.
Working with Flex File Upload and Download
Well, if everything else failed to satisfy your file processing desires with Flex, you can always read the @#%! manual, as they always said.
File Upload Watcher with Apollo (AIR) and JavaScript
Kevin Hoyt will never fail you. This example demonstrates the strength of AIR and showed the powerful combination of AIR and JavaScript. If you are thinking about offline/online solution for your application and in the mean time deal with files, here is a very good start point.
Just another small piece of Flex upload example. You can get the code here.
출처 : http://www.flex3.info/flex-examples/flex-file-upload-examples/1695/
'공부방 > Flex' 카테고리의 다른 글
[Flex] Object의 Key와 값을 동적으로 적용하기 (0) | 2012.03.28 |
---|---|
[Flex] Flex에서 Wake On Lan Command Line (0) | 2012.03.14 |
[Flex] Adobe AIR SQLite Example (0) | 2012.03.13 |
[Flex] Excel 한글 문제 해결 (0) | 2012.03.02 |
[Flex] Flex Datagrid Paging 처리 (0) | 2012.02.24 |