Image upload with AS3 mac problem fix

Tue, Apr 27, 2010

Programming, Snippets

I hit my head several times on the wall before I found out why browsers on MAC dont work exactly as browsers on windows, after uploading a file via Flash.

the reason is simple : on MAC the browsers never calls onComplete = function(fileRef:FileReference) {}. Which means that the image is uploaded alright, but the flash app never gets a response back that the file has finished uploading.

All you have to do is , on your php/aspx/apsx/py or whatever server side file is handling your file upload from flash, you need to print something at the end of uploading.

for example in php, you could print the word : completed.

print "completed";

you can print whatever word you want, it doesnt matter, all that matters is that the server side file is printing something (After the upload has finished) and browsers on mac platforms, will pick up on that , and your file upload will work!

, , ,

This post was written by:

- who has written 196 posts on

Software Engineer and Web Developer, keen on new technologies and has passion for web engineering.... Internet is my job and i love it...!!! Founded Baldpixel ( on 2008 which is specialized on enginnering custom web projects while cooperating with top advertising agencies on the net.

Contact the author