如何在DropBox iOS Core SDK中停止上传文件请求?

时间:2013-06-16 05:04:13

标签: ios dropbox

我使用[restClient uploadFileChunk:uploadId offset:offset fromPath:path];上传文件。如何取消上传文件请求?

1 个答案:

答案 0 :(得分:2)

DropBox DBRestClient.h文件中的方法必须取消请求

此处路径指的是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;