I would like to cancel uploading files programmatically with a user event (clicking a stop button while uploading). How can I accomplish it?