<?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: Help downloading a non-image file using the API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234833#M12844</link>
    <description>&lt;P&gt;I finally was able to find that the error I am getting back from DropBox is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;&amp;nbsp;&amp;nbsp; fopen(&lt;A href="https://api.dropboxapi.com/2/files/get_temporary_link" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_temporary_link&lt;/A&gt;&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; failed to open stream: HTTP request failed! HTTP/1.1 409 Conflict&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;I did some searching and I was not able to see why this is happening.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;Bryan&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 21:07:27 GMT</pubDate>
    <dc:creator>bryancart32</dc:creator>
    <dc:date>2017-07-31T21:07:27Z</dc:date>
    <item>
      <title>Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234404#M12794</link>
      <description>&lt;P&gt;I am trying to use the v2 API to to get a temporary link to a file.&amp;nbsp; JPG files work fine, but I have some .dcm files.&amp;nbsp; These are medical image DICOM format files.&amp;nbsp; I need to be able to create a temporary link to this file so that I can download it from my own web application.&lt;BR /&gt;&lt;BR /&gt;I am calling the API with this message:&lt;BR /&gt;&lt;BR /&gt;{"path":"/DICOM/13c76bf2914c6d87786d555f0994c531/1.dcm"}&lt;BR /&gt;&lt;BR /&gt;I am getting this result: Invalid URL&lt;BR /&gt;&lt;BR /&gt;I know the URL is good and I can see the file in my account.&lt;BR /&gt;&lt;BR /&gt;Can you please let me know how to do what I am trying to do?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Bryan Whitaker&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234404#M12794</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2019-05-29T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234409#M12795</link>
      <description>Hi Bryan, to clarify, are you calling /2/files/get_temporary_link with that parameter? That shouldn't produce an error like that. Please share the full request and response (just be sure to redact the access token) so we can take a look. Thanks!</description>
      <pubDate>Thu, 27 Jul 2017 21:47:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234409#M12795</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-27T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234411#M12796</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I log into dropbox, this is the URL for the file preview:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/home/DICOM/13c76bf2914c6d87786d555f0994c531?preview=1.dcm" target="_blank"&gt;https://www.dropbox.com/home/DICOM/13c76bf2914c6d87786d555f0994c531?preview=1.dcm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the call I am making to the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL: &lt;A href="https://api.dropboxapi.com/2/files/get_temporary_link" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_temporary_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Auth: Bearer TOKEN&lt;/P&gt;&lt;P&gt;JSON Post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {"path":"/DICOM/13c76bf2914c6d87786d555f0994c531/1.dcm"}&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Invalid URL: &lt;A href="https://api.dropboxapi.com/2/files/get_temporary_link" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_temporary_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that's it.&amp;nbsp; Your help is greatly appreciated.&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 21:57:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234411#M12796</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2017-07-27T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234422#M12798</link>
      <description>&lt;P&gt;Thanks Bryan. That is the correct URL for this API endpoint, and that doesn't seem to be the&amp;nbsp;actual API request/response though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, using curl, this works for me: (just using a made up 1.dcm file in my test account)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -vX POST https://api.dropboxapi.com/2/files/get_temporary_link \
&amp;gt;     --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
&amp;gt;     --header "Content-Type: application/json" \
&amp;gt;     --data "{\"path\":\"/DICOM/13c76bf2914c6d87786d555f0994c531/1.dcm\"}"

&amp;gt; POST /2/files/get_temporary_link HTTP/1.1
&amp;gt; User-Agent: curl/7.33.0
&amp;gt; Host: api.dropboxapi.com
&amp;gt; Accept: */*
&amp;gt; Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;
&amp;gt; Content-Type: application/json
&amp;gt; Content-Length: 56
&amp;gt;
} [data not shown]
* upload completely sent off: 56 out of 56 bytes
&amp;lt; HTTP/1.1 200 OK
* Server nginx is not blacklisted
&amp;lt; Server: nginx
&amp;lt; Date: Thu, 27 Jul 2017 23:19:17 GMT
&amp;lt; Content-Type: application/json
&amp;lt; Transfer-Encoding: chunked
&amp;lt; Connection: keep-alive
&amp;lt; Vary: Accept-Encoding
&amp;lt; Vary: Accept-Encoding
&amp;lt; Cache-Control: no-cache
&amp;lt; Pragma: no-cache
&amp;lt; X-Content-Type-Options: nosniff
&amp;lt; X-Dropbox-Http-Protocol: None
&amp;lt; X-Dropbox-Request-Id: 388c65354c4b571dbcc5ce3e25d736f0
&amp;lt; X-Frame-Options: SAMEORIGIN
&amp;lt; X-Server-Response-Time: 315
&amp;lt;
{ [data not shown]
100   811    0   755  100    56    835     61 --:--:-- --:--:-- --:--:--   940
* Connection #0 to host api.dropboxapi.com left intact
{
  "metadata": {
    "name": "1.dcm",
    "path_lower": "/dicom/13c76bf2914c6d87786d555f0994c531/1.dcm",
    "path_display": "/DICOM/13c76bf2914c6d87786d555f0994c531/1.dcm",
    "id": "id:25N5ksooX-sAAAAAAAMc8Q",
    "client_modified": "2017-07-27T21:46:04Z",
    "server_modified": "2017-07-27T21:46:05Z",
    "rev": "71d18021eccc7",
    "size": 9,
    "content_hash": "824979ede959fefe53082bc14502f8bf041d53997ffb65cbbe3ade5803f7fb76"
  },
  "link": "https://dl.dropboxusercontent.com/apitl/1/AACh0gTVcnX-KmJkXbSH5qALdmLo1QoLJyQHbpVRXKVYBbn2ZFaJsIXdAXr1JM0sTg7RiQPaeymbJmyeSpkDaA505w_9tl_W6rGoXFr90T-1eMy9A3KGzfhnTORWSFbRi9JTPFJInNZepU2rZp6EzuLbjC64SXHpeVnT2F35auCpVQjDepr3hjxBudK1tF2uLmcpk5LhylRJGOpcCZrlT0hJlowU0huvfaUCqX-6ZgAiVsPDuuOVGSs-bOfNaj-LvnImgmkkG_e0fxusqFjpVu6MH0roCfouL3QQI60Izt8cFg"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you using to make the call? Can you share a screenshot showing it?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 23:22:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234422#M12798</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-27T23:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234501#M12805</link>
      <description>&lt;P&gt;I used PHP and fopen.&amp;nbsp; This is my function:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;function do_post_request($url, $data, $optional_headers = null)&amp;nbsp; {

&amp;nbsp;&amp;nbsp; $params = array('http' =&amp;gt; array('method' =&amp;gt; 'POST','content' =&amp;gt; $data));
&amp;nbsp;&amp;nbsp; if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; }
&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; echo "&amp;lt;pre&amp;gt;";print_r($params);echo "&amp;lt;/pre&amp;gt;";
&amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; $ctx = stream_context_create($params);
&amp;nbsp;&amp;nbsp; try {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $fp = @fopen($url, 'rb', false, $ctx);
&amp;nbsp;&amp;nbsp; } catch(Exception $ex) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo '1 Error: ' .$ex-&amp;gt;getMessage();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; //if (!$fp) { throw new Exception("Problem with $url, $php_errormsg"); }
&amp;nbsp;&amp;nbsp; if (!$fp) { echo "2 Error: ".$php_errormsg; }
&amp;nbsp;&amp;nbsp; $response = @stream_get_contents($fp);
&amp;nbsp;&amp;nbsp; echo "&amp;lt;pre&amp;gt;";print_r($response);echo "&amp;lt;/pre&amp;gt;";

&amp;nbsp;&amp;nbsp; if ($response === false) { $response = "Invalid URL: ".$url;/*echo "Problem reading data from $url.";*/ }

&amp;nbsp;&amp;nbsp; return $response;
}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;THIS ONE WORKED DOWNLOADING A JPG FILE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Array
(
&amp;nbsp;&amp;nbsp;&amp;nbsp; [http] =&amp;gt; Array
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [method] =&amp;gt; POST
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content] =&amp;gt; {"path":"/DICOM/13c76bf2914c6d87786d555f0994c531/1.jpg"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [header] =&amp;gt; Content-Type: application/json
Authorization: Bearer [TOKEN-HERE]

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )
)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;RETURNED:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp; "metadata":{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name":"1.jpg",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "path_lower":"/dicom/13c76bf2914c6d87786d555f0994c531/1.jpg",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "path_display":"/DICOM/13c76bf2914c6d87786d555f0994c531/1.jpg",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id":"id:PnjeM0FAI_AAAAAAAAAJWQ",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "client_modified":"2017-07-07T14:26:41Z",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "server_modified":"2017-07-07T14:26:41Z",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "rev":"13004a8335bf",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size":982513,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "content_hash":"3a3179223b1b08759a3b5d222d1a7d226b16557b3f98b75d88874bce27d74bb2"
&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp; "link":"https://dl.dropboxusercontent.com/apitl/1/AACiQGW0Md8EYbPrqqNkdPsl ..."
}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;THIS ONE FAILED DOWNLOADING A DCM FILE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Array
(
&amp;nbsp;&amp;nbsp;&amp;nbsp; [http] =&amp;gt; Array
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [method] =&amp;gt; POST
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content] =&amp;gt; {"path":"/DICOM/13c76bf2914c6d87786d555f0994c531/1.dcm"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [header] =&amp;gt; Content-Type: application/json
Authorization: Bearer [TOKEN-HERE]

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )

)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I do not know how to get any more details of why the response failed. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:28:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234501#M12805</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2017-07-28T19:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234541#M12814</link>
      <description>&lt;P&gt;Thanks! That's helpful. So, the "Invalid URL" error isn't coming from the API itself, but rather just from this line of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if ($response === false) { $response = "Invalid URL: ".$url;/*echo "Problem reading data from $url.";*/ }&lt;/PRE&gt;
&lt;P&gt;That will occur if `$response` is false, and `$response` will be false based on `@&lt;A href="http://php.net/manual/en/function.stream-get-contents.php" target="_self"&gt;stream_get_contents&lt;/A&gt;($fp)`. The `$fp` comes from `&lt;A href="http://php.net/manual/en/function.fopen.php" target="_self"&gt;fopen&lt;/A&gt;`, which will return false if an error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if something went wrong with the API call itself, `fopen` would return false, which wouldn't be a valid&amp;nbsp;`resource` as `stream_get_contents` expects, &amp;nbsp;so `stream_get_contents` would then return false, and trigger your `$response === false` line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the&amp;nbsp;&lt;A href="http://php.net/manual/en/function.fopen.php" target="_self"&gt;fopen&lt;/A&gt;&amp;nbsp;documentation: "If the open fails, an error of level E_WARNING is generated.". I can't offer much general PHP advice, but it looks like there is some information in &lt;A href="https://stackoverflow.com/questions/8018693/get-meaningful-information-when-fopen-fails-php-suphp" target="_self"&gt;this StackOverflow post&lt;/A&gt; about getting the error information, if that's where the issue is occuring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you already have some other `echo` statements in the case where things failed though. Are you getting any output from those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can use curl in PHP instead, like shown in &lt;A href=" https://stackoverflow.com/documentation/dropbox-api/414/getting-a-shared-link-for-a-file-or-folder/24125/creating-a-shared-link-for-a-file-using-curl-in-php#t=20170728193525332506" target="_self"&gt;this example&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:54:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234541#M12814</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-28T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234833#M12844</link>
      <description>&lt;P&gt;I finally was able to find that the error I am getting back from DropBox is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;&amp;nbsp;&amp;nbsp; fopen(&lt;A href="https://api.dropboxapi.com/2/files/get_temporary_link" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_temporary_link&lt;/A&gt;&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; failed to open stream: HTTP request failed! HTTP/1.1 409 Conflict&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;I did some searching and I was not able to see why this is happening.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="preview-thumbnail"&gt;Bryan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:07:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234833#M12844</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2017-07-31T21:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234834#M12845</link>
      <description>Thanks! That "HTTP/1.1 409 Conflict" is part of the API response, but it's only the status line. Can you print out the rest? The response body should contain a specific error.</description>
      <pubDate>Mon, 31 Jul 2017 21:11:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234834#M12845</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-31T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234836#M12846</link>
      <description>&lt;P&gt;409 - Conflict&lt;BR /&gt;{"error_summary": "path/not_found/..", "error": {".tag": "path", "path": {".tag": "not_found"}}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I look in the folder: /DICOM/13c76bf2914c6d87786d555f0994c531&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 4 files:&amp;nbsp; 1.jpg, 1.dcm, 2.jpg, 2.dcm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The exact same code works for 1.jpg and 2.jpg, but fails for 1.dcm and 2.dcm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:30:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234836#M12846</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2017-07-31T21:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234844#M12848</link>
      <description>&lt;P&gt;Thanks! That is the response we're looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link documentation&lt;/A&gt;&amp;nbsp;covers what the 'not_found' error means. In this case, it does mean there was nothing found at the path supplied in the 'path' parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you checking that the folder does contain 1.dcm and 2.dcm? Be careful checking via a computer, for example, in case your folder isn't syncing (e.g., maybe your desktop client isn't running) or in case it's linked to a different account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;&amp;nbsp;to list the contents of the folder, and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;/2/users/get_current_account&lt;/A&gt;&amp;nbsp;to check the linked account.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 00:28:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/234844#M12848</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-01T00:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help downloading a non-image file using the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/235180#M12896</link>
      <description>&lt;P&gt;Thank you so much for your help.&amp;nbsp; I feel like an idiot, but I have two different DropBox accounts for testing and I was using the wrong token and once I corrected that it's working great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;Bryan&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 19:38:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-downloading-a-non-image-file-using-the-API/m-p/235180#M12896</guid>
      <dc:creator>bryancart32</dc:creator>
      <dc:date>2017-08-02T19:38:40Z</dc:date>
    </item>
  </channel>
</rss>

