<?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: Can't Download File From Dropbox downloadData With Objective-C in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Download-File-From-Dropbox-downloadData-With-Objective-C/m-p/211983#M10707</link>
    <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/issues/109" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c/issues/109&lt;/A&gt; ]&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 19:58:06 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-16T19:58:06Z</dc:date>
    <item>
      <title>Can't Download File From Dropbox downloadData With Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Download-File-From-Dropbox-downloadData-With-Objective-C/m-p/211957#M10699</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the following code to download data from Dropbox&amp;nbsp;&lt;SPAN&gt;using the Vs2 API:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;NSString *filePath = @"/&lt;SPAN class="s1"&gt;&lt;STRONG&gt;joelLockFolderV2_1489675832.409768.tsl&lt;/STRONG&gt;&lt;/SPAN&gt;";&lt;BR /&gt;&lt;BR /&gt;[[client.filesRoutes downloadData:filePath]
    setResponseBlock:^(DBFILESFileMetadata *result, DBFILESDownloadError *routeError, DBRequestError *error,
                       NSData *fileContents) {
      if (result) {
        NSLog(@"%@\n", result);
        NSString *dataStr = [[NSString alloc] initWithData:fileContents encoding:NSUTF8StringEncoding];
        NSLog(@"%@\n", dataStr);
      } else {
        NSLog(@"%@\n%@\n", routeError, error);
      }
    }];&lt;/PRE&gt;&lt;P&gt;When I try this I receive the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2017-03-16 15:58:35.759 xctest[78431:5712864] (null)
DropboxClientError[{
    NSError = "Error Domain=NSURLErrorDomain Code=-1 \"unknown error\" UserInfo={NSErrorFailingURLKey=https://api-content.dropbox.com/2/files/download, NSLocalizedDescription=unknown error, NSErrorFailingURLStringKey=https://api-content.dropbox.com/2/files/download}";
}];

&lt;/PRE&gt;&lt;P&gt;I have checked and the file at filePath exists. I've found that various Api calls correctly work. I am having the same problem with&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[client.filesRoutes downloadUrl:filePath overwrite:TRUE destination:ril]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;And:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[[client.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;filesRoutes&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;uploadUrl&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:remoteFilePath &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;inputUrl&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:localURL]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I've tried setting&amp;nbsp;'NSAppTransportSecurity' to Allow Arbitary loads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything I am missing...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Download-File-From-Dropbox-downloadData-With-Objective-C/m-p/211957#M10699</guid>
      <dc:creator>JoelBarker</dc:creator>
      <dc:date>2019-05-29T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Download File From Dropbox downloadData With Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Download-File-From-Dropbox-downloadData-With-Objective-C/m-p/211983#M10707</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/issues/109" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c/issues/109&lt;/A&gt; ]&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 19:58:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Download-File-From-Dropbox-downloadData-With-Objective-C/m-p/211983#M10707</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-16T19:58:06Z</dc:date>
    </item>
  </channel>
</rss>

