Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

How to cancel AFAmazonS3Manager uploading process #96

Open
yuchaozh opened this issue Aug 24, 2015 · 1 comment
Open

How to cancel AFAmazonS3Manager uploading process #96

yuchaozh opened this issue Aug 24, 2015 · 1 comment

Comments

@yuchaozh
Copy link

Hi,

I am use AFAmazonS3Manager to upload files to S3 bucket by referencing the code in usage example. But How to cancel a uploading process? And can I delete a file from S3 using AFAmazonS3Manager? How?

Thanks.

@ghost
Copy link

ghost commented Dec 15, 2015

Put following method in AFAmazonS3Manager.m
-(void)cancelAllOperation
{
if ([self.operationQueue operationCount] > 0)
{
[self.operationQueue cancelAllOperations];
}

}

call it when you want to stop it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant