我使用[restClient uploadFileChunk:uploadId offset:offset fromPath:path];
上传文件。如何取消上传文件请求?
答案 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;