15
Feb
08

FileReference onComplete is not fired on Mac OS / 404 error / IO error

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

A While ago we had an interesting problem with file flash uploaders on Macs. It turns out it doesn’t work. But we have found the way. So here is how we solved the undocumented feature
1. Firstly ensure that you explicitly load the cross domain policy file.

2. Make sure you escape all the characters, Macs hate spaces.

3. And the most important you need to send empty response from upload server-side script.

In php, you would just do
echo (”");

after file-upload code. In ASP, you can do
Response.Write (”").

In Java servlet, you can do:
response.getWriter().println(”");

response.getWriter().flush();

That’s all, now onComplete event should trigger on Mac’s Adobe Flash Player 8.

But if sending “” dosent work try “ “ or “1” – we found that sending 1 was the best option.

Hope this shines some light on a frustrating problem

Found this useful? How about buying me a coffee - simply click here.


0 Responses to “FileReference onComplete is not fired on Mac OS / 404 error / IO error”


  1. No Comments

Leave a Reply




Close
E-mail It