<?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: View File Content through API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618636#M28477</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As you mentioned that metadata are not of interest for you, why are you observing "Dropbox-API-Result" header? There are only metadata and it's a response header (one of some number of headers in the response header block), NOT a response body. As Greg mentioned, file content (you are interested in) is presented in the response body, NOT the in whatever header in header block! See in documentation, how you can get in touch to the body of HTTP response in your environment. Don't mess response body with "Dropbox-API-Result". &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; They are different things! No one key will let you access to the body - it's just not in the same place.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2022 03:12:54 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-08-27T03:12:54Z</dc:date>
    <item>
      <title>View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618585#M28474</link>
      <description>&lt;P&gt;I want to access the contents of a private file in my Dropbox account so I can display the contents on my website. I am using the files/download method and receiving the expected response outline in the documentation. However, I can't seem to find the actual content of the file in text form so I can display it on my website. There's no particular response header for the actual content of the file, just the metadata. Please provide some guidance on how to get just the text from the docx file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 22:00:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618585#M28474</guid>
      <dc:creator>mwatt776</dc:creator>
      <dc:date>2022-08-26T22:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618602#M28475</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;The /2/files/download endpoint&lt;/A&gt; is a "&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_blank"&gt;content-download&lt;/A&gt;" style endpoint, so the file content is returned in the response body (not a header). Refer to your client's documentation for information on how to read the data from the response body.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 23:58:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618602#M28475</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-26T23:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618632#M28476</link>
      <description>&lt;P&gt;This is all I can find in the documentation:&lt;/P&gt;&lt;P&gt;"Content-download endpoints&lt;/P&gt;&lt;P&gt;As with content-upload endpoints, arguments are passed in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Dropbox-API-Arg&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;request header or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arg&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;URL parameter. The response body contains file content, so the result will appear as JSON in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Dropbox-API-Result&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;response header. These endpoints are also on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;content.dropboxapi.com&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;domain."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how much of Dropbox-API-Result I can show here but it has the following keys for me: name, path_lower, path_display, id, client_modified, server_modified, rev, size, is_downloadable, content_hash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do any of the keys allow me to access the file content?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 02:27:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618632#M28476</guid>
      <dc:creator>mwatt776</dc:creator>
      <dc:date>2022-08-27T02:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618636#M28477</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As you mentioned that metadata are not of interest for you, why are you observing "Dropbox-API-Result" header? There are only metadata and it's a response header (one of some number of headers in the response header block), NOT a response body. As Greg mentioned, file content (you are interested in) is presented in the response body, NOT the in whatever header in header block! See in documentation, how you can get in touch to the body of HTTP response in your environment. Don't mess response body with "Dropbox-API-Result". &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; They are different things! No one key will let you access to the body - it's just not in the same place.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 03:12:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618636#M28477</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-27T03:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618643#M28478</link>
      <description>&lt;P&gt;I think I found the response body but it looks like junk. In the response header, it says the Content-Type is&amp;nbsp;&lt;SPAN&gt;application/octet-stream. How can I receive the file content in plain text?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 05:40:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618643#M28478</guid>
      <dc:creator>mwatt776</dc:creator>
      <dc:date>2022-08-27T05:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618668#M28479</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I think I found the response body but it looks like junk. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't know what you mean "junk" here.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Dropbox gives you exactly what you point to (and uploaded before, of course), nothing more or less. Either using API or some other way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... In the response header, it says the Content-Type is&amp;nbsp;&lt;SPAN&gt;application/octet-stream. ...&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, that's right. As I mentioned, API doesn't play with your data in any way (if not explicitly requested somehow - download is not such a way), rather treats data as a "closed case in a black box" that has to be transferred (whatever is the actual data type - including if it's a plain text). That's why when you transfer something it's denoted as an "application/octet-stream", whatever it's actually (plain text, formatted text, image of different type, clip file, etc). Don't rely on "Content-Type" header to figure out actual type; that's what metadata are for (even they are not so reliable). Better just ignore this header in the response;&amp;nbsp;&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; it's always the same on successful call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..&lt;SPAN&gt;. How can I receive the file content in plain text?&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As I mentioned, you are receiving exactly what you've queried, nothing more or less. According to your first post here, you are downloading ".docx" file. Is it still so? If so, this format is definitely not a plain text! Why you're expecting plain text in such a situation? If you want plain text, save a plain text file and download it (save the docx as txt or html, for instance) and make sure you can open this file in plain text editor in advance. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Can you open docx in a plain text editor? 🧐 Rhetorical question of course. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 12:18:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618668#M28479</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-27T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618798#M28485</link>
      <description>&lt;P&gt;The only reason I am use files/download is because I read that you can somehow get the content of the file this way. My goal is to get the text from a docx file on Dropbox to display on my website. Any tips on how I can do this? I do not want to use the embedder because it does not let me customize the iframe. I do not want the logo and background or anything else in the iframe, just the text.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 00:46:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618798#M28485</guid>
      <dc:creator>mwatt776</dc:creator>
      <dc:date>2022-08-29T00:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: View File Content through API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618886#M28490</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1568808"&gt;@mwatt776&lt;/a&gt;, your question goes out of Dropbox API matter. As I said Dropbox API just brings to you the actual file content (in particular docx which is not a plain text). What you're going to do further is up to you. You can consider where format transformation should be performed (server side or user browser, for example) - solutions can differs. There are different ways to perform such a thing in any situation/place. Some googling might surprise your. &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; Only as an example, take a look &lt;A title="Mammoth .docx to HTML converter" href="https://www.npmjs.com/package/mammoth" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Don't be lazy, check some others too, to figure out what best matches your needs. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:03:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-File-Content-through-API/m-p/618886#M28490</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-29T12:03:14Z</dc:date>
    </item>
  </channel>
</rss>

