I have a small Java program that enables a user to Upload/Download files to/from Amazon S3. I have a 'Cancel' button and would like to cancel the transfer once this button is pressed.
It looks like there is an abort() method when Downloading which seems to be working, however I am not sure how to go about aborting an Upload. I am using a TransferManager to upload the files. I have tried calling transferManager.shutdownNow() along with transferManager.abortMultipartUploads(), however the file still shows up in the S3 Management Console as if the transfer was not aborted. Am I doing something wrong?