Accessibility
Marco Casario

Marco Casario

Created:
23 June 2008
User Level:
Intermediate
Products:
Flex

Flex Solutions excerpt: Uploading files to the server

Uploading and downloading files from the client to the server are operations that are often indispensable in an application. Uploading files that reside on the client's computer is a feature on which many web applications have founded their success. Would YouTube or Flickr (two of the most well-known web applications) be as successful if they did not offer the possibility of uploading files from the user's computer to the web server?

Flex and Flash Player allow developers to create upload and download functions through the FileReference class. Each file that is selected by the user represents a FileReference object and contains the information relative to the file size, type, name, creation date, and modification date.

By clicking the Select file button, you can select a file on your own PC and then send it.

Figure 1. By clicking the Select file button, you can select a file on your own PC and then send it.

Read the complete chapter

Flex solutions excerpt: Uploading files to the server (PDF, 111K)

About the author

Marco Casario has been passionate about informatics since he was little more than a child and used to program games in Basic for Commodore 64, before dedicating himself—while still very young—to innovative projects for the web using Adobe Flash and Adobe Director (as far back as versions 3 and 5). In 2005, he founded Comtaste, a company dedicated to exploring new frontiers in rich Internet applications and the convergence between the web and the world of mobile devices. Marco was a technical editor for Apress, Friends of ED, and Wrox for such books such as Flash 8 Essentials, Professional Adobe Flex 2, and Foundation Flash Applications for Mobile Devices.