• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 22. PHP and Flash > File Uploads—Flash 8 Specific

File Uploads—Flash 8 Specific

One of the largest demands from the Flash development community was a file system object that could be used for file uploading. When Macromedia developed Flash 8, they incorporated the fileReference object, which allows SWF files to access the file system of the user's machine. We will use this new object in our next, and final, example.

Example 7—File Upload

In the following example, we will create a simple file upload utility. This utility will be composed of two parts: one Flash file that will access the file system and grab the file and one PHP page that will do the work of uploading said file. Create a new PHP file, save it as upload.php, and paste the following script inside:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint