cancel between 100% progress and success

Hello.

There is the gap between progress 100% when server process the file and SWFUpload waiting for a success message. If I cancel the upload in that time interval with swfu.cancelUpload() I get a message, that upload is of course canceled. But on server it remains succeeded, saved and processed.

gyphie's picture

Correct

You are correct.

The file has, in fact, been 100% uploaded. It is too late to cancel. At this point SWFUpload is waiting for the webserver to process the file. There's no turning back now.

You can reproduce this issue with a regular HTML file upload (it's just harder to know when you've hit 100% and when you're just waiting for the webserver.

this is good thing to know

thank you for your answer.
Could this be changed in future version of SWFUpload? That it will not return that current file is canceled if cancel happens in that time.
Now I just add additional check on canceling in my javascript handler.