The situation is: when uploading a file progress bar goes to the mark 100% and then stalls there for a noticeable period of time (more than just a few seconds). Then upload successfully finishes. Trying to find out what happens I added an alert in onProgress event. It showed, that 100% progress fires two (!) times and that delay is just between these calls. I tried the latest version (2.1.0) but the result was the same as with my 1.6.2. Can this be fixed somehow through JS or the problem is within the flash-file?
They way flash sends it's progress events are: It sends them while it transfers the file into the temp space of your server. Upon completion, your web server then starts with it's upload script. When finished with the upload script it fires a complete event. Sometimes, flash doesn't always send a 100% progress event and as such, when the complete event triggers we send an official 100% progress event. The delay you are seeing is the time your server is spending processing your upload script.
Unfortunately no progress event are sent while your upload script is processing. This can give the appearance of uploadify "hanging" or not completing. The more processing in your upload script the longer it will "appear" to hang.
The upload.php we use does quite a bit of things to the file, resizing, adding stuff to the database, etc. There is no way to know when the file has completed uploading and we are waiting for upload.php to finish? We'd like to show a "processing file" message when the file has completed uploading.