Well, I
had searched on flashcoders and flexcoders and hadnt found any
references to this bug, but after posting I googled a bit and found
that this is a known bug.
The work around is described here:
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/workaround_file.php
In summary, the bug is exacty as I stated, it is actually a bug from
flash 8 that has apparently not been fixed in 9. And without this fix,
it seems you cannot effectively upload from flash 8 or 9 from the mac.
Hank
On 8/15/06, hank williams <[EMAIL PROTECTED]com>
wrote:
> I think I have found a bug in the mac filereference/upload code or at
> least an important difference between the two that has unfortunate
> consequences.
>
> I am having a hard time uploading using the mac uploader. The file
> actually totally uploads but I am not getting the onComplete message
> as I do under windows. As a result, the screen that I put up to
> indicate success just hangs, waiting to be told the upload was
> successful.
>
> As I dug a little further, I discovered that the post message on the
> mac includes a "close" command whereas the post on the windows
side
> does not. Typically, a close means "don't wait for anything after
this
> message and immediately close when done". I am not an http expert,
but
> perhaps the onComplete message is waiting for a signal that will never
> come because the connection is closed before the last bit of
> information comes in.
>
> I don't know if this is the actual cause of the problem, its just a
> theory, but I know that my app doesn't have this problem under
> windows, and that mac contains this close message in the request
> object, which the windows flash client doesn't generate.
>
> At this point I at least need a work around for the mac side as I am
> dead in the water without a complete message, or at least some
> trustable way to know the upload was successful. I thought of using
> the progress percentage, but even that does not seem to come through
> consistently. It may be that with smaller files it doesn't come
> through, but in any case, on the mac it is inconsistent.
>
> Hank
>