<?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 to get content hash of shared file link in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/458942#M23606</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an API endpoint to get the content hash of a file received as a shared link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where the shared link is to a folder,&amp;nbsp;it's possible with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;sharing/get_shared_link_metadata&lt;/A&gt;&amp;nbsp;{ "url": "&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/&lt;/A&gt;...&lt;/SPAN&gt;" }&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;files/list_folder&lt;/A&gt;&amp;nbsp;{ shared_link: { "url": "&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/&lt;/A&gt;...&lt;/SPAN&gt;" }, path: '/path/to/folder' }&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The result from files/list_folder contains the content_hash field for each file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, if the shared link is to a file, not a folder, I can't find any way to obtain the content_hash for that file from the API.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Therefore, to ensure files are downloaded without corruption, I have to download everything twice and compare the hashes of the two copies - which is a waste of bandwidth for both me and Dropbox.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It would be great if this was available through the API. Perhaps it is and I can't find the right endpoint.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 Oct 2020 10:13:34 GMT</pubDate>
    <dc:creator>overlookmotel</dc:creator>
    <dc:date>2020-10-05T10:13:34Z</dc:date>
    <item>
      <title>API to get content hash of shared file link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/458942#M23606</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an API endpoint to get the content hash of a file received as a shared link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where the shared link is to a folder,&amp;nbsp;it's possible with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;sharing/get_shared_link_metadata&lt;/A&gt;&amp;nbsp;{ "url": "&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/&lt;/A&gt;...&lt;/SPAN&gt;" }&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;files/list_folder&lt;/A&gt;&amp;nbsp;{ shared_link: { "url": "&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/&lt;/A&gt;...&lt;/SPAN&gt;" }, path: '/path/to/folder' }&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The result from files/list_folder contains the content_hash field for each file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, if the shared link is to a file, not a folder, I can't find any way to obtain the content_hash for that file from the API.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Therefore, to ensure files are downloaded without corruption, I have to download everything twice and compare the hashes of the two copies - which is a waste of bandwidth for both me and Dropbox.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It would be great if this was available through the API. Perhaps it is and I can't find the right endpoint.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:13:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/458942#M23606</guid>
      <dc:creator>overlookmotel</dc:creator>
      <dc:date>2020-10-05T10:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: API to get content hash of shared file link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/459053#M23611</link>
      <description>&lt;P&gt;No, unfortunately&amp;nbsp;API doesn't offer a way to get the content hash for a file given just a shared link to the file itself from another account,&amp;nbsp;but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 16:36:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/459053#M23611</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-10-05T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: API to get content hash of shared file link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/469012#M23910</link>
      <description>&lt;P&gt;Thanks Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be very valuable to be able to retrieve this information from the API. As I mentioned, currently we have to download everything twice and hash-check the two copies against each other to ensure no corruption, which is waste of bandwidth on both sides.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:24:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/469012#M23910</guid>
      <dc:creator>overlookmotel</dc:creator>
      <dc:date>2020-11-11T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: API to get content hash of shared file link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/469052#M23914</link>
      <description>&lt;P&gt;Thanks for following up with the additional feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way though, since&amp;nbsp;Dropbox enforces TLS (i.e., it will redirect any http:// shared link URLs to https://), I believe you can technically rely on TLS to ensure integrity of the download against any corruption in transit. &lt;A href="https://tools.ietf.org/html/rfc4346#section-1" target="_self"&gt;The TLS specification&lt;/A&gt; states:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;The primary goal of the TLS Protocol is to provide privacy and data integrity between two communicating applications.&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;The connection is reliable. Message transport includes a message integrity check using a keyed MAC.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 11 Nov 2020 16:11:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-to-get-content-hash-of-shared-file-link/m-p/469052#M23914</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-11T16:11:27Z</dc:date>
    </item>
  </channel>
</rss>

