Completed the feature to cancel the upload