Search code examples
c#amazon-web-servicesamazon-s3upload

Cancel a file upload using .Net client for Amazon S3


I'm writing an app that allows users to browse and upload large files to Amazon S3 via a web application. I'm using the Amazon AWS library for .Net. However because the files are large I want to provide a 'Cancel' option on the website. I can't see anything in the API as to how to cancel a file that's uploading using S3. Does anyone know how to cancel file uploads?

Thanks.


Solution

  • You can do it just by using Thread.Abort()