FileReference updated in Macromedia Flash Player 9 beta 3 class, in latest beta of Macromedia Flash Player 9, has been updated. Let’s see the FileReference.upload(..) method signature.

public function upload(request:URLRequest,
uploadDataFieldName:String = "Filedata", testUpload:Boolean = false):void

Following are things, I noticed in the latest beta.

  • Custom data-field name, which was hard-coded(as FileData) in previous version of player. Now you can change it by using uploadDataFieldName parameter of upload method of FileReference.
  • You can now send HTTP/POST parameters with file-upload request. Previous version of player only allowed you to send HTTP/GET parameters. You can use first parameter request to send HTTP POST or GET parameters.

This means, I can now go ahead and complete my Flickr AS3 API. I was stuck, when I wanted to upload pictures to Flickr. Darron’s Flickr AS3 library was also missing file-upload feature because of above mentioned limitation in previous versions of Flash Player 9 beta. I am sure, Darron must have updated Flickr AS3 library.