The upload is aborted when the user leaves the form (by clicking 'Cancel'). We should check what the difference is between clicking the 'x' in the Gui (besides the progress bar) or clicking 'Cancel'.