Fix upload cancellation