objective c - Amazon S3 track downloaded file in Asynchronous method in iOS -


While downloading multiple files using the Asynchronous method of AWS IOS, I want to keep track of which Image is being downloaded

The following code is used for asynchronous image download.

  S3TransferManager * tm = [S3TransferManager new]; S3 Transfer Operation * Download File Operation = [TM Download File: StoreFillettePatt Bucket: Bucket Key: Download Path];  

The above method is for loop, so there can be n images to download.

Representative information that indicates image is downloaded

  - (zero) request: (AmazonServiceRequest *) Requested with some: (AmazonServiceResponse *) Response {}  

But I did not find anything that I can use to manage what the actual image is downloaded. Whether it was the first ID image or the other one

Any idea where I can put some additional data, which can be found on the image download?

You can set requestTag:

  S3PutObjectRequest * putObjectRequest = [[S3PutObjectRequest alloc] initWithKey: keyFile inBucket: self.s3BucketName]; PutObjectRequest.requestTag = urlStringFile; PutObjectRequest.filename = fileName;  

and then analyze it:

  - (zero) request: (Amazon Service Service Request) Requested Completely Response: ( AmazonServSpace *) Response {NSLog ("Upload Upload Request Tag =% @", request.requestTag); }  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -