<?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 Re: swifty dropbox download cancel in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207071#M10095</link>
    <description>&lt;P&gt;Okay, that worked for now.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 06:52:58 GMT</pubDate>
    <dc:creator>Jiho P.</dc:creator>
    <dc:date>2017-02-16T06:52:58Z</dc:date>
    <item>
      <title>swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162376#M5657</link>
      <description>&lt;P&gt;how can I cancel a file download in progress through the API? thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:34:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162376#M5657</guid>
      <dc:creator>Christian T.16</dc:creator>
      <dc:date>2019-05-29T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162377#M5658</link>
      <description>&lt;P&gt;Unfortunately the SwiftyDropbox SDK doesn't currently offer a way to cancel uploads,&amp;nbsp;but I'll pass this along as a feature request.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 03:50:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162377#M5658</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-17T03:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162378#M5659</link>
      <description>&lt;P&gt;thanks, so no cancel for downloads or uploads?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 03:56:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162378#M5659</guid>
      <dc:creator>Christian T.16</dc:creator>
      <dc:date>2016-03-17T03:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162379#M5660</link>
      <description>&lt;P&gt;Oh, apologies, I meant to say downloads. But that's correct, there isn't currently a way to cancel either.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 03:57:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162379#M5660</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-17T03:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162380#M5661</link>
      <description>&lt;P&gt;This seems to me like a huge oversight from your part. When can we expect an api fix as we have a&amp;nbsp;release coming soon? Without a way to cancel a download this SDK&amp;nbsp;is not suitable&amp;nbsp;for displaying a list of thumbnails in a tableview/collectionview without firing a ton of download requests with no way of stopping them when the cells get out of view.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We integrated this api and now we see that we have to remove it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I propose to either expose the NSURLRequest directly or to use something similar to Apple's&amp;nbsp;Photos api where a request returns an ID, that one can store as the cell's tag or similar, and then&amp;nbsp;provide a&amp;nbsp;function to cancel a request by ID. Then it will all look quite nicely in cellForItemAtIndexPath:&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; cell.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;tag&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; != &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s5"&gt;&amp;nbsp; &amp;nbsp; client?.files.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;cancelRequest(DropBoxRequestID(cell.tag))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;cell.tag = Int(client.files.getThumbnail([...])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;[...]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 20:57:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162380#M5661</guid>
      <dc:creator>Gabriel N.2</dc:creator>
      <dc:date>2016-04-28T20:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162381#M5662</link>
      <description>&lt;P&gt;Thanks for the feedback! I don't have a timeline for when this might be implemented,&amp;nbsp;but I'll be sure to add your vote to the feature request.&lt;/P&gt;
&lt;P&gt;By the way, the SDK is open-source, so you&amp;nbsp;can modify it as desired:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox" rel="nofollow noreferrer"&gt;https://github.com/dropbox/SwiftyDropbox&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:51:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162381#M5662</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-28T23:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162382#M5663</link>
      <description>&lt;P&gt;Quick follow up here, in the latest versions of SwiftyDropbox, upload/download request objects do now offer a `cancel` method you can call&amp;nbsp;to cancel the request.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 00:43:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/162382#M5663</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-18T00:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207055#M10088</link>
      <description>&lt;P&gt;Hi, adding to an old thread, but is this implemented&amp;nbsp;for Objective C Library?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use cancel(), the app crashes with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You must override cancel in a subclass'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:52:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207055#M10088</guid>
      <dc:creator>Jiho P.</dc:creator>
      <dc:date>2017-02-16T02:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207062#M10089</link>
      <description>Hi Jiho, yes, this is available in the Objective-C SDK, but that's a known issue in version 2.0.6 in particular. You can use 2.0.5 as a workaround for now.</description>
      <pubDate>Thu, 16 Feb 2017 05:25:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207062#M10089</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-16T05:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207071#M10095</link>
      <description>&lt;P&gt;Okay, that worked for now.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 06:52:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207071#M10095</guid>
      <dc:creator>Jiho P.</dc:creator>
      <dc:date>2017-02-16T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207351#M10153</link>
      <description>&lt;P&gt;The override issue in 2.0.6 is fixed now in &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;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 22:11:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/207351#M10153</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-17T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/347852#M20007</link>
      <description>&lt;P&gt;Do we need to explicitly cancel the upload requests, or is it enough to release the objects by setting it to nil? Example, I have&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;dbUploadTask = client?.files.uploadSessionStart(input: data)
&amp;nbsp;dbUploadTask?.response(completionHandler: { [weak self] (result, error) in

}&lt;/PRE&gt;&lt;P&gt;Then is it safe to set the object to nil while upload is in progress? Or is it necessary to call cancel() before setting it to nil?&lt;/P&gt;&lt;PRE&gt;dbUploadTask = nil&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2019 07:06:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/347852#M20007</guid>
      <dc:creator>DS6</dc:creator>
      <dc:date>2019-06-04T07:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox download cancel</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/347942#M20008</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/578087"&gt;@DS6&lt;/a&gt;&amp;nbsp;If you want to cancel the request, you should explicitly call `cancel`. (I can't guarantee that `nil`ing the object will be sufficient.)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:03:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-download-cancel/m-p/347942#M20008</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-06-04T15:03:04Z</dc:date>
    </item>
  </channel>
</rss>

