<?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: get_thumbnail_v2 returning invalid thumbnail in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548336#M26108</link>
    <description>&lt;P&gt;Thanks for sharing this! It looks like this is due to how we set the "Etag" value on these responses, causing the browser to cache the result. We'll look into it, but in the meantime, the easiest way to work around this client-side may be to use a POST instead of a GET, as that should avoid the caching anyway.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 16:13:41 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-10-01T16:13:41Z</dc:date>
    <item>
      <title>get_thumbnail_v2 returning invalid thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548203#M26100</link>
      <description>&lt;P&gt;We are using '&lt;A href="https://content.dropboxapi.com/2/files/get_thumbnail_v2'" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/get_thumbnail_v2'&lt;/A&gt;&amp;nbsp;api to fetch thumbnails of varying size&amp;nbsp; '&lt;SPAN class="s1"&gt;w128h128' and '&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;w1024h768' . However we receive the thumbnail of size 128x128 in both the cases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Please the request/response attached. The only thing varying in the response header is ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;1. 128x128 has following response header,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Vary: &lt;/STRONG&gt;Dropbox-API-Arg, Authorization&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;2. 1024x768 has the following in response header,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Vary: &lt;/STRONG&gt;Dropbox-API-Arg, Authorization, &lt;SPAN class="s2"&gt;Accept-Encoding&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="s2"&gt;This is something that dropbox controls, because of which we get a cached thumbnail not respecting the size request in the '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Dropbox-API-Arg' .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Can someone please provide more insight on how to fix this?Is there anything in the API request that can be set so we get the appropriate thumbnail?&amp;nbsp; Also, we see this behavior on certain images, so its not consistent across different images [one such image is attached]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="orange.jpeg" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25503i551F8AECBF27D71D/image-size/small?v=v2&amp;amp;px=200" role="button" title="orange.jpeg" alt="orange.jpeg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="request-1" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25508i4AC043ADC92007E0/image-size/small?v=v2&amp;amp;px=200" role="button" title="orange-dropbox-1024x768-thumbnail_Page_2.jpg" alt="request-1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;request-1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="response-1" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25509i7E3614D617051979/image-size/small?v=v2&amp;amp;px=200" role="button" title="orange-dropbox-1024x768-thumbnail_Page_1.jpg" alt="response-1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;response-1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="request-2" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25510i70F2C8B573D25248/image-size/small?v=v2&amp;amp;px=200" role="button" title="orange-dropbox-128x128-thumbnail_Page_2.jpg" alt="request-2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;request-2&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="response-2" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25511iF1509BD1EA7D04D5/image-size/small?v=v2&amp;amp;px=200" role="button" title="orange-dropbox-128x128-thumbnail_Page_1.jpg" alt="response-2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;response-2&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 00:32:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548203#M26100</guid>
      <dc:creator>pparkar</dc:creator>
      <dc:date>2021-10-01T00:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: get_thumbnail_v2 returning invalid thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548336#M26108</link>
      <description>&lt;P&gt;Thanks for sharing this! It looks like this is due to how we set the "Etag" value on these responses, causing the browser to cache the result. We'll look into it, but in the meantime, the easiest way to work around this client-side may be to use a POST instead of a GET, as that should avoid the caching anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 16:13:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548336#M26108</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-01T16:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: get_thumbnail_v2 returning invalid thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548427#M26111</link>
      <description>&lt;P&gt;Thanks Greg-DB! Using post works for us.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 22:36:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-thumbnail-v2-returning-invalid-thumbnail/m-p/548427#M26111</guid>
      <dc:creator>pparkar</dc:creator>
      <dc:date>2021-10-01T22:36:08Z</dc:date>
    </item>
  </channel>
</rss>

