Fixed  Cancelling uploads at 100% still uploads file.

Hello,

In this thread I have 2 similar attachments (Red Volkswagen T2 van):
http://xenforo.com/community/threads/test.5477/

I first uploaded it, but clicked cancel just when it reached 100%, it cancelled and was removed from the uploads section. Then I uploaded it again, but without cancelling.
However, when I posted the thread, the cancelled attachment also showed up.

This will probably be difficult to reproduce due to precise timing. But it should be impossible to cancel an attachment after it is saved to the database (or the request to do so is already send).
 
Fixed now, the cancel button gets disabled when the entire image has been sent. It can still be deleted after processing is done.
 
Top Bottom