<?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: API V2 analogue of  canceFileLoad and cancelFileUpload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222333#M11860</link>
    <description>&lt;P&gt;Hmmm. &amp;nbsp;After hours of hacking I tried adding the framework an an embedded binary, and lo and behold the App now runs on a device:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-22 at 9.49.26 AM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/482i93EFF5D712A8EC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-05-22 at 9.49.26 AM.png" alt="Screen Shot 2017-05-22 at 9.49.26 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That seems to give me TWO instances of Linked Frameworks now. &amp;nbsp;In the DB docs, for method #3 Xcode subprojects the instructions are very specific:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) for iOS add the framework as a Linked Framework only.&lt;/P&gt;
&lt;P&gt;2) for macOS add the framework as an Embedded Binary only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am confused &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case I am prepared to mark this particular question concerning canceling up/down-loads from Objective-C as answered, leaving aside the unanswered linking questions/problems. &amp;nbsp;As an aside I will note that I can also better read the full Objective-C V2 API docs thanks to you. &amp;nbsp;It was, as they say, hard for me to see the forest for the trees.&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;</description>
    <pubDate>Mon, 22 May 2017 13:59:40 GMT</pubDate>
    <dc:creator>Steve L.32</dc:creator>
    <dc:date>2017-05-22T13:59:40Z</dc:date>
    <item>
      <title>API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222193#M11839</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In my iOS app using Dropbox API V1 I cancel file uploads and downloads using code similar to this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;[self.restClient canceFileLoad:dBox.cloudURLDropbox];&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the corressponding V2 method call ... I've spent some time looking throught the docs and for the life of me I cannot see what to do!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222193#M11839</guid>
      <dc:creator>Steve L.32</dc:creator>
      <dc:date>2019-05-29T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222202#M11841</link>
      <description>&lt;P&gt;You can save the task returned by the download/upload call, and then call cancel on it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DBDownloadDataTask *downloadTask = [[client.filesRoutes downloadData:filePath] setResponseBlock:^(DBFILESFileMetadata *metadata, DBFILESDownloadError *downloadError, DBRequestError *error, NSData *fileData) {
        // ...
}];

// ...

[downloadTask cancel];
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 01:09:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222202#M11841</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-21T01:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222211#M11842</link>
      <description>&lt;P&gt;Thank you Greg, perfecto! I can cancel uploads and downloads on the iOS simulator. &amp;nbsp;But when I try to run my App on a real device (iPhone 7) I get a dynlib error similar to what happens when archiving the macOS version of my App &amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt; I am again using the Xcode subproject method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am stuck again ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-20 at 11.00.12 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/481iEAB4B64B718BA5FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-05-20 at 11.00.12 PM.png" alt="Screen Shot 2017-05-20 at 11.00.12 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-20 at 11.05.40 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/480i9AB0E0CF3F6AD66A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-05-20 at 11.05.40 PM.png" alt="Screen Shot 2017-05-20 at 11.05.40 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 03:07:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222211#M11842</guid>
      <dc:creator>Steve L.32</dc:creator>
      <dc:date>2017-05-21T03:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222333#M11860</link>
      <description>&lt;P&gt;Hmmm. &amp;nbsp;After hours of hacking I tried adding the framework an an embedded binary, and lo and behold the App now runs on a device:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-22 at 9.49.26 AM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/482i93EFF5D712A8EC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-05-22 at 9.49.26 AM.png" alt="Screen Shot 2017-05-22 at 9.49.26 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That seems to give me TWO instances of Linked Frameworks now. &amp;nbsp;In the DB docs, for method #3 Xcode subprojects the instructions are very specific:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) for iOS add the framework as a Linked Framework only.&lt;/P&gt;
&lt;P&gt;2) for macOS add the framework as an Embedded Binary only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am confused &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case I am prepared to mark this particular question concerning canceling up/down-loads from Objective-C as answered, leaving aside the unanswered linking questions/problems. &amp;nbsp;As an aside I will note that I can also better read the full Objective-C V2 API docs thanks to you. &amp;nbsp;It was, as they say, hard for me to see the forest for the trees.&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;</description>
      <pubDate>Mon, 22 May 2017 13:59:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222333#M11860</guid>
      <dc:creator>Steve L.32</dc:creator>
      <dc:date>2017-05-22T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222388#M11863</link>
      <description>Thanks! I'm glad to hear you got that working. &lt;BR /&gt;&lt;BR /&gt;I'll still have engineering investigate this to figure out what's causing that though.</description>
      <pubDate>Mon, 22 May 2017 17:14:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/222388#M11863</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-22T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/244839#M13828</link>
      <description>&lt;P&gt;Hi Steve and Greg,&lt;/P&gt;&lt;P&gt;I already use this feature and it works but I have a further question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose I have to upload a file of 1 MB. &amp;nbsp;I start the upload but after 1-2 secs I stop the upload. It works but in the while some bytes have been uploaded and I want to remove them. Is there a way to automatically remove the uploaded bytes or I have to remove them by myself after I stopped the upload?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and regards,&lt;/P&gt;&lt;P&gt;Giordano&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 08:11:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/244839#M13828</guid>
      <dc:creator>Giordano58</dc:creator>
      <dc:date>2017-10-03T08:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/244921#M13846</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/499387"&gt;@Giordano58&lt;/a&gt;&amp;nbsp;If you cancel the upload before it completes, the partial data is never "committed" and you don't need to do anything to remove it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 16:12:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/244921#M13846</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-03T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 analogue of  canceFileLoad and cancelFileUpload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/245094#M13874</link>
      <description>&lt;P&gt;Yes, ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Making use of the following method to upload file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;userClient&lt;SPAN&gt;.&lt;/SPAN&gt;filesRoutes &lt;SPAN&gt;uploadUrl&lt;/SPAN&gt;&lt;SPAN&gt;:pathToSave &lt;/SPAN&gt;&lt;SPAN&gt;inputUrl&lt;/SPAN&gt;&lt;SPAN&gt;:db]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have solved also this problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Giordano&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 08:04:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-analogue-of-canceFileLoad-and-cancelFileUpload/m-p/245094#M13874</guid>
      <dc:creator>Giordano58</dc:creator>
      <dc:date>2017-10-04T08:04:52Z</dc:date>
    </item>
  </channel>
</rss>

