Accessibility
Ryan Favro

Ryan Favro

Blog

Table of Contents

Created:
11 September 2006
User Level:
Intermediate
Products:
Coldfusion

Multiple file upload with Flex and ColdFusion

In this article, you will learn how Adobe Flex 2 and ColdFusion MX 7 enable you to create applications that leverage the file I/O capabilities of Adobe Flash Player 9 to transport files from the client side to the server side with relative ease.

Through the Multi-File Upload application, you will learn how to do the following:

  • Use Adobe Flex Builder 2 to create a rich user interface to cue up files to upload
  • Perform client-side processing logic to permit only desirable file sizes and file types
  • Include additional variables with each file uploaded to the server
  • Use the ColdFusion CFFILE tag to handle files uploaded to the server

As great as this application is, be aware that it is not intended to demonstrate development best practices. Rather its purpose is to show how the technical and functional capabilities of Flex 2, Flash Player 9, and ColdFusion MX 7 file processing can improve the user experience of uploading files through a web browser.

Requirements

You may want to download and install the following software to follow along with this article:

Flex Builder 2 (SDK included)

Flash Player 9

ColdFusion MX 7.0.2

Sample files:

Prerequisite knowledge

Familiarity with general Flex concepts and ColdFusion's file management tags such as CFFILE.

Additional documentation

About the author

Ryan Favro is the lead systems architect and managing partner at New Media Team Inc., a Toronto-based web consulting and development company. Ryan has been architecting web application solutions for the past seven years, programming in languages such as ColdFusion, ASP, PHP, and ActionScript. Ryan's other passion, besides testing the limits of the web, is motorcycles. If he's not programming, he is most likely to be out on his motorcycle enjoying Toronto's roadways. Subscribe to Ryan's blog at http://ryanfavro.newmediateam.com/blog/ where you can stay up to date on his Flex and ColdFusion postings.