<?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 API command to view file content in web browser in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283316#M17340</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to integrate Dropbox deeply into a web app, and one of the biggest required features is to be able to view the contents of the file in a HTML frame, much like the corrent dropbox.com does when you click to view a file in the browser, and you see the comments on the side as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being able to retrieve and list the comments of the viewed file would be a bonus too, but at this point I'm wondering if it's even possible to the file contents as webContent, just like in &lt;A href="https://developers.google.com/drive/api/v3/manage-downloads#downloading_google_documents" target="_blank"&gt;Google Drive you can do this by accessing the webContentLink&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mark&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:12:08 GMT</pubDate>
    <dc:creator>Mark M.130</dc:creator>
    <dc:date>2019-05-29T09:12:08Z</dc:date>
    <item>
      <title>API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283316#M17340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to integrate Dropbox deeply into a web app, and one of the biggest required features is to be able to view the contents of the file in a HTML frame, much like the corrent dropbox.com does when you click to view a file in the browser, and you see the comments on the side as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being able to retrieve and list the comments of the viewed file would be a bonus too, but at this point I'm wondering if it's even possible to the file contents as webContent, just like in &lt;A href="https://developers.google.com/drive/api/v3/manage-downloads#downloading_google_documents" target="_blank"&gt;Google Drive you can do this by accessing the webContentLink&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mark&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283316#M17340</guid>
      <dc:creator>Mark M.130</dc:creator>
      <dc:date>2019-05-29T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283354#M17344</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox API doesn't offer a way to access file comments,&amp;nbsp;but I'll pass this along as a feature request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does offer a few options for accessing file data itself though:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The standard way is to get the file data directly from the&amp;nbsp;Dropbox API servers using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;/2/files/download&lt;/A&gt;. (Or, for a preview or thumbnail version of the data, depending on the file type, using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_blank"&gt;/2/files/get_preview&lt;/A&gt; or&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_blank"&gt;/2/files/get_thumbnail&lt;/A&gt;&amp;nbsp;respectively.) These return the file data directly, which you could save and display on your web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can get a temporary link to the file data using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, for a more permanent link to the&amp;nbsp;Dropbox web site to display the file, you can create a shared link using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_blank"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt;. It sounds like this might be closest to what you're looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of &lt;A href="https://www.dropbox.com/developers/documentation" target="_self"&gt;the official SDKs&lt;/A&gt; if possible. Those have corresponding native methods for the HTTPS endpoints. )&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 18:02:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283354#M17344</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-05T18:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283358#M17346</link>
      <description>&lt;P&gt;Thanks Greg for the quick response. To clarify, what's the difference between preview, thumbnail and download?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 18:25:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283358#M17346</guid>
      <dc:creator>Mark M.130</dc:creator>
      <dc:date>2018-07-05T18:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283361#M17347</link>
      <description>The endpoint names in my previous reply are links to the documentation which has more information about each one, but in short:&lt;BR /&gt;- download: returns the original file data&lt;BR /&gt;- get_preview: returns the data for an HTML or PDF preview for files of supported document types&lt;BR /&gt;- get_thumbnail: returns the data for a jpeg or png thumbnail for files of supported image types</description>
      <pubDate>Thu, 05 Jul 2018 18:50:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/283361#M17347</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-05T18:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/285102#M17454</link>
      <description>&lt;P&gt;Thanks! Sounds like preview is what I'd need.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:14:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/285102#M17454</guid>
      <dc:creator>Mark M.130</dc:creator>
      <dc:date>2018-07-17T20:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/729393#M32263</link>
      <description>&lt;P&gt;Did you get to view ur file in web using preview?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 11:51:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/729393#M32263</guid>
      <dc:creator>milankj</dc:creator>
      <dc:date>2023-11-14T11:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: API command to view file content in web browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/729499#M32269</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1766502"&gt;@milankj&lt;/a&gt; The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_blank" rel="noopener noreferrer"&gt;/2/files/get_preview&lt;/A&gt; endpoint is still a valid way to get preview data for files of supported file types. Apps can use that returned data in their UI as needed. If you have any questions or issues regarding using the API, feel free to &lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_blank"&gt;open a new thread&lt;/A&gt; with the relevant details.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:46:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-command-to-view-file-content-in-web-browser/m-p/729499#M32269</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-14T17:46:00Z</dc:date>
    </item>
  </channel>
</rss>

