Added ability to cancel an upload.