Added the possibility to cancel an upload.