wenlong.liu
wenlong.liu

Reputation: 31

How to stop upload file request in DropBox iOS Core SDK ?

I use [restClient uploadFileChunk:uploadId offset:offset fromPath:path]; to upload file. How to cancel upload file request ?

Upvotes: 2

Views: 821

Answers (1)

Bala
Bala

Reputation: 2895

These are the methods in DropBox DBRestClient.h file has to cancel requests

Here the path refers to the path of the File in Dropbox

- (void)cancelFileUpload:(NSString *)path; // This is for you .. 

- (void)cancelAllRequests; /* Cancels all outstanding requests. No callback for those requests will be sent */

- (void)cancelFileLoad:(NSString*)path;

- (void)cancelThumbnailLoad:(NSString*)path size:(NSString*)size;

Upvotes: 2

Related Questions