Flash Uploader on Mac not triggering onComplete event

We have had a whole bunch of issues with the Flash 8 uploader on OS/X in the past. Now its completely broken on leopard, but before we weren't able to do multi-file uploads because the 'onComplete' event wasn't triggered from within flash.

We've been using a (modified) version of SWFUpload and also our Flash applications have had this issue..

Today I read on The Joy of Flex-blog that there's actually a really simple solution to this problem. Have your PHP (or other server-side) simply return some data. Our upload-endpoint normally always returned nothing at all, because it seemed unnecessary, but returning a small body in your HTTP response fixes the issue!

As you can tell, I'm excited.


9 Responses to Flash Uploader on Mac not triggering onComplete event

  1. 466 siep 2007-11-05 10:40 pm

    Good news!

  2. 464 Tony Fendall 2007-11-05 11:40 pm

    Yay! I just came up against this exact problem, and this has saved me a lot of work

  3. 465 Theo 2007-11-08 11:27 am

    Yeah, it such a weird bug... fortunately the first thing I tried when running in to this was to return som data. Not that I though it would fix it, but because I thought that I at least could see how far the response got, if Firefox/Firebug could see it or not.

  4. 467 open source cms 2007-11-29 8:09 pm

    They fast repear this bug!

  5. 468 Kev 2008-01-04 3:58 pm

    Thanks alot! I'd been trying to solve this for about an hour. I knew my page used to work on a mac and couldn't figure out where the change was that had broke it. I was getting despondent and thinking maybe I'd have to start trying to figure out how to debug the flash!
    I guess I'd cleaned up some whitespace in my php file or something. After reading this post, I just added a blank line to the end my PHP file and it works! :)

  6. 463 Scott F 2008-03-17 5:45 pm

    I am still stuck. It works perfectly fine with IE and firefox (due to some modifications I did)..but now on Macs it gives me an error 302. Im so mad.

  7. 462 Felix 2008-06-14 9:59 pm

    Thanks for this info! Btw i found some sool flash technique on this dota site.

  8. 461 rodrigopoloDOTcom 2008-06-28 6:30 am

    The final solution is that the server script responds '&bError=0&'

    in PHP could it be
    die('&bError=0&');
    echo '&bError=0&'; exit;

    etc.

  9. 469 RedPath 2010-01-08 2:36 pm

    Thanks for the info!! First post I read and everything works fine it's a miracle!

Leave a Reply



About

My name is Evert, and I've been writing semi-regularly on this blog since 2006.

I'm currently available for contract work.

more info.

Subscribe

Dropbox

Dropbox is a simple cross-platform online backup and sync application. The first 2GB of space is free, and both you and me get an extra 250MB extra space if you sign up through this link.