Before uploading the file, make sure that file wasn't cancelled.