Today I finally got back to doing some Flex 2.0 stuff again after a month or so working on Flash 8 projects.
When updating some code form beta 2 to 3 I noticed that the default for FileReference when upload is no longer to do a test upload as it does in Flash 8, or previous betas of Flex 2.0. A lot of people moaned about the compulsary test upload for files over 10 KB so now its an optional parameter.
[as]public function upload(request:URLRequest, uploadDataFieldName:String = “Filedata”, testUpload:Boolean = false):void
[/as]

That’s good news I’ve to test it out. We added a small file upload ‘component’ written in Flex to our Rails application but the odd test request that the flash player it making was breaking our Rails application. We had to fix up the CGI ruby class (CGI::QueryExtension.initialize_query) to test for zero length requests to avoid an exception. But this might be the correct solution. Thanks for the info. Note that using the Flex upload allows to select multiple file and upload them at once, that’s a cool solution.
Using FileReferenceList lets you upload multiple files at once, as it does in Flash 8. FileReference limits the user to selecting a single file.
There are more changes, like you can change the data-field name now, which allows you to implement Flickr API completly in ActionScript 3 without using any server-side things.
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/filereference_u.php
-abdul
Yeah thats pretty cool stuff
Is there some examples in as 3.0 not flex
Hi all
Do any of you had the experience with ioError 2038 when uploading from a MAC OS X platform using FLEX? It does not matter what browser you are using which suggests that it is a thing with the operating system and the flash player 9. Unfortunately, I’m stuck because I can not figure out any solution. I want a uploading procedure working cross browser.
Please have a look at the case I’ve submitted:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1311564
Hey Bo,
I have the same (or at least similar) problem: File-upload on a Mac didn’t work. Udating Flash-Player to 9.0.115.0 didn’t solve this. Adobe says, that an IO-Error is dispatched, when you try to upload to a somehow password-protected destination (http://livedocs.adobe.com/flex/2/langref/flash/net/FileReference.html#event:ioError). So I (temporary) removed the .htaccess and file upload worked fine. I will have to mess up with user-administration, session and all that stuff…
Look at this: http://livedocs.adobe.com/flex/2/langref/flash/net/FileReference.html#event:ioError
I came across this looking for solution to why my uploads worked on Windows but not os x (Flex 3, Flash 9.0.115). Our problem is that the os X flash runtime is picky about the response it gets back from the server after a POST. Uploading to S3 didn’t work. Found this S3 doc (bottom of page) http://docs.amazonwebservices.com/AmazonS3/2006-03-01/HTTPPOSTFlash.html , that shows how to fix this for S3. I imagine other servers could respond to the POST similarly, also failing to upload.