<?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: OAuth get file request fails with file not found in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34214#M1040</link>
    <description>&lt;P&gt;Does your app have "Full Dropbox" or "App folder" permission?&lt;/P&gt;

&lt;P&gt;In the app folder case, the root of your paths refers to the app folder, so &lt;CODE&gt;/files/auto/Images/thankyou.jpg&lt;/CODE&gt; will look for a file in &lt;CODE&gt;/Dropbox/Apps/&amp;lt;your app name&amp;gt;/Images/thankyou.jpg&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;It might help if you make a &lt;CODE&gt;metadata&lt;/CODE&gt; call so you can see what's actually in Dropbox first: &lt;CODE&gt;https://api.dropbox.com/1/metadata/auto&lt;/CODE&gt; (with the &lt;CODE&gt;Authorization&lt;/CODE&gt; header). The paths you see there should work when you call &lt;CODE&gt;/files&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Feb 2015 00:58:30 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-02-21T00:58:30Z</dc:date>
    <item>
      <title>OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34213#M1039</link>
      <description>&lt;P&gt;I have been trying the OAuth api and wasn't able to get a file using the files get api as detailed here - &lt;A href="https://www.dropbox.com/developers/core/docs#files-GET" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/core/docs#files-GET&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My request looks as below&lt;BR /&gt;
&lt;A href="https://api-content.dropbox.com/1/files/auto/Images/thankyou.jpg" rel="nofollow noreferrer" target="_blank"&gt;https://api-content.dropbox.com/1/files/auto/Images/thankyou.jpg&lt;/A&gt;&lt;BR /&gt;
with the header - Authorization=Bearer &amp;lt;access-token&amp;gt;&lt;/P&gt;

&lt;P&gt;I get a 404 error with the body as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "error": "File not found"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that the account info api call succeeds. The files api call fails.&lt;BR /&gt;
I have tried multiple forms of the get request but all of them give the same error&lt;BR /&gt;
&lt;A href="https://api-content.dropbox.com/1/files/auto/APIsForDummies.pdf" rel="nofollow noreferrer" target="_blank"&gt;https://api-content.dropbox.com/1/files/auto/APIsForDummies.pdf&lt;/A&gt; &lt;BR /&gt;
and &lt;A href="https://api-content.dropbox.com/1/files/auto/Getting" rel="nofollow noreferrer" target="_blank"&gt;https://api-content.dropbox.com/1/files/auto/Getting&lt;/A&gt; Started.pdf&lt;/P&gt;

&lt;P&gt;How should the file path be given to make the api call succeed?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34213#M1039</guid>
      <dc:creator>Amit1</dc:creator>
      <dc:date>2019-05-29T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34214#M1040</link>
      <description>&lt;P&gt;Does your app have "Full Dropbox" or "App folder" permission?&lt;/P&gt;

&lt;P&gt;In the app folder case, the root of your paths refers to the app folder, so &lt;CODE&gt;/files/auto/Images/thankyou.jpg&lt;/CODE&gt; will look for a file in &lt;CODE&gt;/Dropbox/Apps/&amp;lt;your app name&amp;gt;/Images/thankyou.jpg&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;It might help if you make a &lt;CODE&gt;metadata&lt;/CODE&gt; call so you can see what's actually in Dropbox first: &lt;CODE&gt;https://api.dropbox.com/1/metadata/auto&lt;/CODE&gt; (with the &lt;CODE&gt;Authorization&lt;/CODE&gt; header). The paths you see there should work when you call &lt;CODE&gt;/files&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 00:58:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34214#M1040</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-02-21T00:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34215#M1041</link>
      <description>&lt;P&gt;Great. You were spot on.  I had placed the files under the root folder and not inside the app folder. It worked after I place my files under the App folder and try making the /files api call.&lt;/P&gt;

&lt;P&gt;I had initially tried the metadata api call but it seems that the documentation (&lt;A href="https://www.dropbox.com/developers/core/docs#metadata" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#metadata&lt;/A&gt;) mentions that the api calls requires the path and I misinterpreted it. Not passing the path works is what didn't click me earlier.&lt;/P&gt;

&lt;P&gt;Thanks a ton!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 14:02:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34215#M1041</guid>
      <dc:creator>Amit1</dc:creator>
      <dc:date>2015-02-23T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34216#M1042</link>
      <description>&lt;P&gt;Have the same issue. I have&amp;nbsp;"Full Dropbox" permission&lt;/P&gt;
&lt;PRE&gt;{"error": "File not found"}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Under root I have &lt;STRONG&gt;"folder"&lt;/STRONG&gt; folder and inside it &lt;STRONG&gt;left.png&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Path is retrieved by&lt;STRONG&gt; metadata&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://api-content.dropbox.com/1/files/auto/dropbox/folder/left.jpg?oauth_consumer_key=23ji9ydhhprk1tv&amp;amp;oauth_nonce=3b22dde5b2b300000&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=1472210676&amp;amp;oauth_token=wy0vvhrabjdh714m&amp;amp;oauth_version=1.0&amp;amp;oauth_signature=nHJ0NC3c6EHocEQVKKJth%2FupO%2Bo%3D" rel="nofollow noreferrer"&gt;https://api-content.dropbox.com/1/files/auto/dropbox/folder/left.jpg?oauth_consumer_key=23ji9ydhhprk1tv&amp;amp;oauth_nonce=3b22dde5b2b300000&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=1472210676&amp;amp;oauth_token=wy0vvhrabjdh714m&amp;amp;oauth_version=1.0&amp;amp;oauth_signature=nHJ0NC3c6EHocEQVKKJth%2FupO%2Bo%3D&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;With App folder all works. But I need "Full Dropbox" permission&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 18:28:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34216#M1042</guid>
      <dc:creator>InF B.</dc:creator>
      <dc:date>2016-08-26T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34217#M1043</link>
      <description>&lt;P&gt;InF B, /1/files/auto/dropbox/folder/left.jpg looks wrong.&amp;nbsp;Based on your description of the location of the file, shouldn't that be /1/files/auto/folder/left.jpg (no "/dropbox")?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 22:55:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34217#M1043</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-08-26T22:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34218#M1044</link>
      <description>&lt;P&gt;Steve, without "/dropbox" I get&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"error": "Unauthorized"}&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:48:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34218#M1044</guid>
      <dc:creator>InF B.</dc:creator>
      <dc:date>2016-08-29T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth get file request fails with file not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34219#M1045</link>
      <description>&lt;P&gt;Did you&amp;nbsp;construct the right OAuth signature after&amp;nbsp;changing the URL? (This error sounds like a bad OAuth signature.)&lt;/P&gt;
&lt;P&gt;Also, is there a reason you're&amp;nbsp;using OAuth 1 and HMAC signatures? OAuth&amp;nbsp;1 with PLAINTEXT signatures is easier&amp;nbsp;to work with, and OAuth 2 is even easier.&lt;/P&gt;
&lt;P&gt;Also, &lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank" rel="nofollow noreferrer"&gt;API v1 has been deprecated&lt;/A&gt;, so&amp;nbsp;you may just want to move to API v2 now (which only supports OAuth 2).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:47:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-get-file-request-fails-with-file-not-found/m-p/34219#M1045</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-08-29T22:47:17Z</dc:date>
    </item>
  </channel>
</rss>

