<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to cancel the uploading process in API V.2(C-Objective) ? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/202848#M9661</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In version API v.1 we have used the folowing APIs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;- (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset (to send a larcge file)
[[self restClient] cancelAllRequests] (to cancel the uploading process)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In version API v.2 wa are using the folowing APIs:&lt;BR /&gt;uploadSession (to send a large file)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;how to cancel the uploading process in the version API v.2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:26:35 GMT</pubDate>
    <dc:creator>comb</dc:creator>
    <dc:date>2019-05-29T09:26:35Z</dc:date>
    <item>
      <title>How to cancel the uploading process in API V.2(C-Objective) ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/202848#M9661</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In version API v.1 we have used the folowing APIs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;- (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset (to send a larcge file)
[[self restClient] cancelAllRequests] (to cancel the uploading process)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In version API v.2 wa are using the folowing APIs:&lt;BR /&gt;uploadSession (to send a large file)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;how to cancel the uploading process in the version API v.2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/202848#M9661</guid>
      <dc:creator>comb</dc:creator>
      <dc:date>2019-05-29T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel the uploading process in API V.2(C-Objective) ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/202937#M9666</link>
      <description>&lt;P&gt;The API v2 Objective-C SDK doesn't have a method like&amp;nbsp;cancelAllRequests to cancel all active requests at once,&amp;nbsp;but I'll be sure to pass this along as a feature request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using upload sessions though, since you control how and when each portion is uploaded, you can have your app stop the upload session by stopping further calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in any case, you can cancel an individual upload call (when using upload sessions or not) by calling cancel on the call object itself, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DBUploadTask *req = [client.filesRoutes upload...
[req cancel];&lt;/PRE&gt;
&lt;P&gt;(Note that there's a &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/issues/76" target="_self"&gt;bug&lt;/A&gt; with that in 2.0.6, so you may want to use 2.0.5 for now to do this.)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:20:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/202937#M9666</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-19T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel the uploading process in API V.2(C-Objective) ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/207349#M10151</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The override issue in 2.0.6 is fixed now in &lt;/SPAN&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/releases/tag/3.0.0" target="_self"&gt;version 3.0.0&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 22:10:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-cancel-the-uploading-process-in-API-V-2-C-Objective/m-p/207349#M10151</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-17T22:10:57Z</dc:date>
    </item>
  </channel>
</rss>

