Hi guy, I am in trouble with this amazing tool/script/utility.
Exactly, if I try to upload any kind of file, clicking on upload button, the upload progress immediatly go to the 100% and match the size of the upload file.
In background the upload run again but I have not the feedback of the progress.
What is the problem?
On click uploadProgress end immediatly
March 8, 2010 - 1:04pm
March 8, 2010 - 2:57pm
*****
uploadProgress(file object, bytes complete, total bytes)
The uploadProgress event is fired periodically by the Flash Control. This event is useful for providing UI updates on the page.
*****
Confirm that "uploadProgress event" don't work for me.
Is it a bug?
March 8, 2010 - 3:06pm
This is probably your client's Anti-Virus. This is a known issue and cannot be worked around.
Some anti-virus software intercepts your outbound HTTP and, since it is local, it does it really fast making your progress bar jump to 100%. The Flash Player cannot tell what is accepting the upload, just that it was accepted. So it sends the whole file as fast as it is accepted.
Then your anti-virus scans it and proxies the outbound HTTP to the original target server and this takes the normal amount of time. If it takes longer than 30 seconds a bug in Flash causes the transmission to terminate without any errors so things get stuck.
You have some options:
-Disable that feature in your anti-virus (but you can't control this on other client machines).
-Use assume_success_timeout setting to work around the 30 second issue then you'll have to use Ajax to check with the server to make sure the upload really was successful (vs just sent).
-Use the SWFUpload v2.5.0 proxy detection plugin. This adds an event for uploads that seem like they went too fast to be possible. Then you can display a warning to your users to warn them about what might be going on.
March 8, 2010 - 3:53pm
thank you, this advice is very helpfull for me.
Hi!