<?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 Since 31/01/22 all the download files become corrupted. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576132#M26865</link>
    <description>&lt;P&gt;I own a Magento 1.9.4.2 store which has only downloadable products in it. Once a customer buy a digital product, Magento sends an email with the download link generated by Magento itself from the Dropbox one. This is worked since 2013 from 31/01/22. Suddenly, it doesn't work anymore. All the download files, past and present, become corrupted once downloaded!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a big issue for me. What's happened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to restore my store from a 20/01/22 backup, but nothing's changed. It still doesn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropbox, what's happened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;______________________&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the file types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Downloaded from Magento link [Corrupted]:&amp;nbsp;&lt;STRONG&gt;application/octet-stream; charset=binary&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Downloaded from Dropbox link [Ok]: &lt;STRONG&gt;application/zip; charset=binary&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Sat, 02 Mar 2024 00:39:58 GMT</pubDate>
    <dc:creator>kamzata</dc:creator>
    <dc:date>2024-03-02T00:39:58Z</dc:date>
    <item>
      <title>Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576132#M26865</link>
      <description>&lt;P&gt;I own a Magento 1.9.4.2 store which has only downloadable products in it. Once a customer buy a digital product, Magento sends an email with the download link generated by Magento itself from the Dropbox one. This is worked since 2013 from 31/01/22. Suddenly, it doesn't work anymore. All the download files, past and present, become corrupted once downloaded!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a big issue for me. What's happened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to restore my store from a 20/01/22 backup, but nothing's changed. It still doesn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropbox, what's happened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;______________________&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the file types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Downloaded from Magento link [Corrupted]:&amp;nbsp;&lt;STRONG&gt;application/octet-stream; charset=binary&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Downloaded from Dropbox link [Ok]: &lt;STRONG&gt;application/zip; charset=binary&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 02 Mar 2024 00:39:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576132#M26865</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2024-03-02T00:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576220#M26866</link>
      <description>&lt;P&gt;I checked the http response header and it says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;content-disposition: attachment; filename="testfile.zip"
content-type: application/zip&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but, as I wrote, once downloaded the file type become&amp;nbsp;&lt;STRONG&gt;application/octet-stream&lt;/STRONG&gt; and the file is corrupted. Any hints?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 00:46:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576220#M26866</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576344#M26870</link>
      <description>&lt;P&gt;Here's the curl output from the Magento server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@magento /tmp# curl -I https://dl.dropboxusercontent.com/s/v2d3vm174biluk1/filetest.zip?dl=1

HTTP/2 200
accept-ranges: bytes
cache-control: max-age=60
content-disposition: attachment; filename="filetest.zip"; filename*=UTF-8''filetest.zip
content-security-policy: report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-usercontent ; sandbox allow-forms allow-scripts allow-top-navigation allow-popups
content-security-policy: form-action 'none' ; report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-noscript ; script-src 'none'
etag: 233d
pragma: public
set-cookie:  uc_session=uIn423ZW179jClyoN4r0YtVWgKogBVoLNoWNzXmy0qQPyWJZverGltTFPC2eLXUh; Domain=dropboxusercontent.com; HttpOnly; Path=/; Secure
x-content-type-options: nosniff
x-server-response-time: 220
content-type: application/json
accept-encoding: identity,gzip
date: Tue, 08 Feb 2022 12:45:20 GMT
server: envoy
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-robots-tag: noindex, nofollow, noimageindex
content-length: 94851266
vary: Accept-Encoding
x-dropbox-response-origin: far_remote
x-dropbox-request-id: b57ed34ca29b4648a4e2e055339b8edb&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:51:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576344#M26870</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T12:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576432#M26874</link>
      <description>&lt;P&gt;Can you clarify what you mean when you say the file is corrupted? What is in the&amp;nbsp;downloaded file? For example, is it empty, or missing data, longer than expected, etc?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that the "-I" option on curl only performs a HEAD request, meaning it only requests the headers, so it won't return the actual file data to inspect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it looks like the shared link you posted has been revoked/deleted. Do you have a current sample you can share?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, note that the "dl" parameter is meant for use on "&lt;A href="http://www.dropbox.com/s/" target="_blank"&gt;www.dropbox.com/s/&lt;/A&gt;...", not "dl.dropboxusercontent.com/s/...". You can find &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;documentation for that here&lt;/A&gt;. You should use "&lt;A href="http://www.dropbox.com/s/" target="_blank"&gt;www.dropbox.com/s/&lt;/A&gt;..." with that instead of accessing "dl.dropboxusercontent.com/s/..." directly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:49:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576432#M26874</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-08T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576465#M26878</link>
      <description>&lt;P&gt;Thanks for your reply. When I say the file is corrupted I mean the zip file you download cannot be extracted because "the archive is damage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This some concrete example. This is a zip test file which contains a pdf. If I try to download the file from this url ( &lt;A href="https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip?dl=1" target="_blank" rel="noopener"&gt;https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip?dl=1&lt;/A&gt;&amp;nbsp;) from my browser I can extract it without any issue. If I try to do the same from my server it results corrupted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the curl output from my server (check the wrong "content-type") [Result: Corrupted]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; nginx  ⌁ root  /etc/nginx  curl -I https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip?dl=1

HTTP/2 200
accept-ranges: bytes
cache-control: max-age=60
content-disposition: attachment; filename="testfile.zip"; filename*=UTF-8''testfile.zip
content-security-policy: report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-usercontent ; sandbox allow-forms allow-scripts allow-top-navigation allow-popups
content-security-policy: form-action 'none' ; report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-noscript ; script-src 'none'
etag: 1644342873714211d
pragma: public
set-cookie:  uc_session=BDnnO07ayQJM8sbiAijB34ctfMey60W0C4YcU6nxwEKs5vcZ8gYtQtZyJh1cATqI; Domain=dropboxusercontent.com; HttpOnly; Path=/; Secure
x-content-type-options: nosniff
x-server-response-time: 204
content-type: application/json
accept-encoding: identity,gzip
date: Tue, 08 Feb 2022 18:05:15 GMT
server: envoy
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-robots-tag: noindex, nofollow, noimageindex
content-length: 11867
vary: Accept-Encoding
x-dropbox-response-origin: far_remote
x-dropbox-request-id: 0f3550a667b246b4884a9781edbd423f&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's always worked until 31/01/22. No server update has been made since 2 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:22:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576465#M26878</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T18:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576469#M26879</link>
      <description>&lt;P&gt;This is the output from the CLI on my local PC [Result: Corrupted]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;❯ curl -I https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip\?dl\=1

HTTP/2 200
accept-ranges: bytes
cache-control: max-age=60
content-disposition: attachment; filename="testfile.zip"; filename*=UTF-8''testfile.zip
content-security-policy: report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-usercontent ; sandbox allow-forms allow-scripts allow-top-navigation allow-popups
content-security-policy: form-action 'none' ; report-uri https://www.dropbox.com/csp_log?policy_name=blockserver-noscript ; script-src 'none'
etag: 1644342873714211d
pragma: public
set-cookie:  uc_session=DF8IA7wiq9ZfMojfS1xdMRH0fX5Om1C8LHZNfRu5E2gHMtL6Mf6ihX6JenJzZHlR; Domain=dropboxusercontent.com; HttpOnly; Path=/; Secure
x-content-type-options: nosniff
x-server-response-time: 238
content-type: application/json
accept-encoding: identity,gzip
date: Tue, 08 Feb 2022 18:16:52 GMT
server: envoy
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-robots-tag: noindex, nofollow, noimageindex
content-length: 11867
vary: Accept-Encoding
x-dropbox-response-origin: far_remote
x-dropbox-request-id: 967f401abcab4713a0d4466207bf5c39&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output from my Chrome browser [Result: OK]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2022-02-08 alle 19.18.59.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/27540i0C2468DE1BA703B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2022-02-08 alle 19.18.59.png" alt="Schermata 2022-02-08 alle 19.18.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:20:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576469#M26879</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576487#M26880</link>
      <description>&lt;P&gt;Actually doing from CLI on my local PC:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;wget https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip\?dl\=1&lt;/LI-CODE&gt;&lt;P&gt;I obtain:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;testfile.zip?dl=1&lt;/LI-CODE&gt;&lt;P&gt;and if I do:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;❯ unzip testfile.zip\?dl=1
Archive:  testfile.zip?dl=1
  inflating: testfile.pdf
  inflating: __MACOSX/._testfile.pdf&lt;/LI-CODE&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I do the same thing from my server:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;wget https://dl.dropboxusercontent.com/s/y33dnhk2rgquju4/testfile.zip\?dl\=1&lt;/LI-CODE&gt;&lt;P&gt;I obtain (please, note the quotes added on the filename):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'testfile.zip?dl=1'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and if I do:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;unzip 'testfile.zip?dl=1.1'
Archive:  testfile.zip?dl=1.1
  inflating: testfile.pdf
  inflating: __MACOSX/._testfile.pdf&lt;/LI-CODE&gt;&lt;P&gt;It works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 19:18:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576487#M26880</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T19:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576515#M26881</link>
      <description>&lt;P&gt;Can you try inspecting the corrupt download to see what the issue is specifically? For example, compare it to the original file to see why it does not appear to be a valid zip file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that curl's "-I" doesn't actually download the file, so that may not be a useful test. Here's how you should actually do this with curl, also using the corrected hostname:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;curl -L "https://www.dropbox.com/s/y33dnhk2rgquju4/testfile.zip?dl=1" -o out.zip&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would download the linked file to a local file "out.zip" (via "-o"), telling curl to follow redirects (via "-L"). I just gave that a try and the downloaded file works fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though, this only tests this using curl, which may not be representative of exactly what the client in the app is doing. (Likewise for wget.) This may require some more troubleshooting in the app itself. So, if you're not the developer/programmer of "Magento", you should reach out to them first.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:16:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576515#M26881</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-08T20:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576562#M26883</link>
      <description>&lt;P&gt;&lt;STRONG&gt;testfile.zip [Original]: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;11867 byte

application/zip; charset=binary&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;testfile.zip [Corrupted]: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;11880 byte

application/octet-stream; charset=binary&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to unzip the corrupted file from the terminal (&lt;EM&gt;unzip testfile.zip&lt;/EM&gt;) and it worked! If I try to use 7zip, Keka, Winzip or some other GUI utility they say "Unzip error: unknown format".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use "&lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;"&amp;nbsp;rather than "dl.dropboxusercontent.com" Magento just download an almost empty&amp;nbsp;&lt;EM&gt;testfile.zip?dl=1&amp;nbsp;&lt;/EM&gt;file.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 23:56:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576562#M26883</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-08T23:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576727#M26892</link>
      <description>&lt;P&gt;Thanks for the additional information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it looks like the "corrupted" download has an extra 13 bytes of data, which some zip utilities tolerate and which some don't. Based on this, it looks like this is because your client isn't properly decoding the HTTP message. We recently updated the server back-end for these links to use "Transfer-Encoding: chunked" (and accordingly not return the "Content-Length" response header) on HTTP/1.1. HTTP clients are expected to handle and decode this automatically. It looks like yours isn't doing so though, and instead is incorrectly saving the raw response body, including some additional HTTP chunk data, as the file. This is something the developer of the app will need to correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since it downloads an almost empty file when using the &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt; link, it sounds like Magento probably isn't following redirects when downloading. You may want to ask the developer to support that as well.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:25:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576727#M26892</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-09T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576753#M26897</link>
      <description>&lt;P&gt;That could be the cause. Unfortunately, I'm using Magento 1 which is not more supported from Magento devs so I need to do this on my own.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However... you said "&lt;SPAN&gt;HTTP clients are expected to handle and decode this automatically...". How the HTTP client should handle it if it doesn't do automatically?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the Magento helper:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;&amp;lt;?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    Mage
 * @package     Mage_Downloadable
 * @copyright  Copyright (c) 2006-2019 Magento, Inc. (http://www.magento.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

/**
 * Downloadable Products Download Helper
 *
 * @category    Mage
 * @package     Mage_Downloadable
 * @author      Magento Core Team &amp;lt;core@magentocommerce.com&amp;gt;
 */
class Mage_Downloadable_Helper_Download extends Mage_Core_Helper_Abstract
{
    const LINK_TYPE_URL         = 'url';
    const LINK_TYPE_FILE        = 'file';

    const XML_PATH_CONTENT_DISPOSITION  = 'catalog/downloadable/content_disposition';

    /**
     * Type of link
     *
     *  string
     */
    protected $_linkType        = self::LINK_TYPE_FILE;

    /**
     * Resource file
     *
     *  string
     */
    protected $_resourceFile    = null;

    /**
     * Resource open handle
     *
     *  resource
     */
    protected $_handle          = null;

    /**
     * Remote server headers
     *
     *  array
     */
    protected $_urlHeaders      = array();

    /**
     * MIME Content-type for a file
     *
     *  string
     */
    protected $_contentType     = 'application/octet-stream';

    /**
     * File name
     *
     *  string
     */
    protected $_fileName        = 'download';

    /**
     * Retrieve Resource file handle (socket, file pointer etc)
     *
     * @return resource
     */
    protected function _getHandle()
    {
        if (!$this-&amp;gt;_resourceFile) {
            Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('Please set resource file and link type.'));
        }

        if (is_null($this-&amp;gt;_handle)) {
            if ($this-&amp;gt;_linkType == self::LINK_TYPE_URL) {

                /**
                 * Validate URL
                 */
                $urlProp = parse_url($this-&amp;gt;_resourceFile);
                if (!isset($urlProp['scheme'])
                    || strtolower($urlProp['scheme'] != 'http') &amp;amp;&amp;amp; strtolower($urlProp['scheme'] != 'https')) {
                    Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('Invalid download URL scheme.'));
                }
                if (!isset($urlProp['host'])) {
                    Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('Invalid download URL host.'));
                }
                switch ($urlProp['scheme']) {
                    case 'https':
                        $scheme = 'ssl://';
                        $port = 443;
                        break;
                    case 'http':
                    default:
                        $scheme = '';
                        $port = 80;
                }
                $hostname = $scheme . $urlProp['host'];

                if (isset($urlProp['port'])) {
                    $port = (int)$urlProp['port'];
                }

                $path = '/';
                if (isset($urlProp['path'])) {
                    $path = $urlProp['path'];
                }
                $query = '';
                if (isset($urlProp['query'])) {
                    $query = '?' . $urlProp['query'];
                }

                try {
                    $this-&amp;gt;_handle = fsockopen($hostname, $port, $errno, $errstr);
                }
                catch (Exception $e) {
                    throw $e;
                }

                if ($this-&amp;gt;_handle === false) {
                    Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('Cannot connect to remote host, error: %s.', $errstr));
                }

                $headers = 'GET ' . $path . $query . ' HTTP/1.0' . "\r\n"
                    . 'Host: ' . $urlProp['host'] . "\r\n"
                    . 'User-Agent: Magento ver/' . Mage::getVersion() . "\r\n"
                    . 'Connection: close' . "\r\n"
                    . "\r\n";
                fwrite($this-&amp;gt;_handle, $headers);

                while (!feof($this-&amp;gt;_handle)) {
                    $str = fgets($this-&amp;gt;_handle, 1024);
                    if ($str == "\r\n") {
                        break;
                    }
                    $match = array();
                    if (preg_match('#^([^:]+): (.*)\s+$#', $str, $match)) {
                        $k = strtolower($match[1]);
                        if ($k == 'set-cookie') {
                            continue;
                        }
                        else {
                            $this-&amp;gt;_urlHeaders[$k] = trim($match[2]);
                        }
                    }
                    elseif (preg_match('#^HTTP/[0-9\.]+ (\d+) (.*)\s$#', $str, $match)) {
                        $this-&amp;gt;_urlHeaders['code'] = $match[1];
                        $this-&amp;gt;_urlHeaders['code-string'] = trim($match[2]);
                    }
                }

                if (!isset($this-&amp;gt;_urlHeaders['code']) || $this-&amp;gt;_urlHeaders['code'] != 200) {
                    Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('An error occurred while getting the requested content. Please contact the store owner.'));
                }
            }
            elseif ($this-&amp;gt;_linkType == self::LINK_TYPE_FILE) {
                $this-&amp;gt;_handle = new Varien_Io_File();
                if (!is_file($this-&amp;gt;_resourceFile)) {
                    Mage::helper('core/file_storage_database')-&amp;gt;saveFileToFilesystem($this-&amp;gt;_resourceFile);
                }
                $this-&amp;gt;_handle-&amp;gt;open(array('path'=&amp;gt;Mage::getBaseDir('var')));
                if (!$this-&amp;gt;_handle-&amp;gt;fileExists($this-&amp;gt;_resourceFile, true)) {
                    Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('The file does not exist.'));
                }
                $this-&amp;gt;_handle-&amp;gt;streamOpen($this-&amp;gt;_resourceFile, 'r');
            }
            else {
                Mage::throwException(Mage::helper('downloadable')-&amp;gt;__('Invalid download link type.'));
            }
        }
        return $this-&amp;gt;_handle;
    }

    /**
     * Retrieve file size in bytes
     */
    public function getFilesize()
    {
        $handle = $this-&amp;gt;_getHandle();
        if ($this-&amp;gt;_linkType == self::LINK_TYPE_FILE) {
            return $handle-&amp;gt;streamStat('size');
        }
        elseif ($this-&amp;gt;_linkType == self::LINK_TYPE_URL) {
            if (isset($this-&amp;gt;_urlHeaders['content-length'])) {
                return $this-&amp;gt;_urlHeaders['content-length'];
            }
        }
        return null;
    }

    public function getContentType()
    {
        $handle = $this-&amp;gt;_getHandle();
        if ($this-&amp;gt;_linkType == self::LINK_TYPE_FILE) {
            if (function_exists('mime_content_type') &amp;amp;&amp;amp; ($contentType = mime_content_type($this-&amp;gt;_resourceFile))) {
                return $contentType;
            } else {
                return Mage::helper('downloadable/file')-&amp;gt;getFileType($this-&amp;gt;_resourceFile);
            }
        }
        elseif ($this-&amp;gt;_linkType == self::LINK_TYPE_URL) {
            if (isset($this-&amp;gt;_urlHeaders['content-type'])) {
                $contentType = explode('; ', $this-&amp;gt;_urlHeaders['content-type']);
                return $contentType[0];
            }
        }
        return $this-&amp;gt;_contentType;
    }

    public function getFilename()
    {
        $handle = $this-&amp;gt;_getHandle();
        if ($this-&amp;gt;_linkType == self::LINK_TYPE_FILE) {
            return pathinfo($this-&amp;gt;_resourceFile, PATHINFO_BASENAME);
        }
        elseif ($this-&amp;gt;_linkType == self::LINK_TYPE_URL) {
            if (isset($this-&amp;gt;_urlHeaders['content-disposition'])) {
                $contentDisposition = explode('; ', $this-&amp;gt;_urlHeaders['content-disposition']);
                if (!empty($contentDisposition[1]) &amp;amp;&amp;amp; strpos($contentDisposition[1], 'filename=') !== false) {
                    return substr($contentDisposition[1], 9);
                }
            }
            if ($fileName = @pathinfo($this-&amp;gt;_resourceFile, PATHINFO_BASENAME)) {
                return $fileName;
            }
        }
        return $this-&amp;gt;_fileName;
    }

    /**
     * Set resource file for download
     *
     * @param string $resourceFile
     * @param string $linkType
     * @return Mage_Downloadable_Helper_Download
     */
    public function setResource($resourceFile, $linkType = self::LINK_TYPE_FILE)
    {
        if (self::LINK_TYPE_FILE == $linkType) {
            //check LFI protection
            /**  $helper Mage_Core_Helper_Data */
            $helper = Mage::helper('core');
            $helper-&amp;gt;checkLfiProtection($resourceFile);
        }

        $this-&amp;gt;_resourceFile    = $resourceFile;
        $this-&amp;gt;_linkType        = $linkType;

        return $this;
    }

    /**
     * Retrieve Http Request Object
     *
     * @return Mage_Core_Controller_Request_Http
     */
    public function getHttpRequest()
    {
        return Mage::app()-&amp;gt;getFrontController()-&amp;gt;getRequest();
    }

    /**
     * Retrieve Http Response Object
     *
     * @return Mage_Core_Controller_Response_Http
     */
    public function getHttpResponse()
    {
        return Mage::app()-&amp;gt;getFrontController()-&amp;gt;getResponse();
    }

    public function output()
    {
        $handle = $this-&amp;gt;_getHandle();
        if ($this-&amp;gt;_linkType == self::LINK_TYPE_FILE) {
            while ($buffer = $handle-&amp;gt;streamRead()) {
                print $buffer;
            }
        }
        elseif ($this-&amp;gt;_linkType == self::LINK_TYPE_URL) {
            while (!feof($handle)) {
                print fgets($handle, 1024);
            }
        }
    }

    /**
     * Use Content-Disposition: attachment
     *
     * @param mixed $store
     * @return bool
     */
    public function getContentDisposition($store = null)
    {
        return Mage::getStoreConfig(self::XML_PATH_CONTENT_DISPOSITION, $store);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is the Controller:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;&amp;lt;?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    Mage
 * @package     Mage_Downloadable
 * @copyright  Copyright (c) 2006-2019 Magento, Inc. (http://www.magento.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

/**
 * Download controller
 *
 * @category    Mage
 * @package     Mage_Downloadable
 * @author      Magento Core Team &amp;lt;core@magentocommerce.com&amp;gt;
 */
class Mage_Downloadable_DownloadController extends Mage_Core_Controller_Front_Action
{

    /**
     * Return core session object
     *
     * @return Mage_Core_Model_Session
     */
    protected function _getSession()
    {
        return Mage::getSingleton('core/session');
    }

    /**
     * Return customer session object
     *
     * @return Mage_Customer_Model_Session
     */
    protected function _getCustomerSession()
    {
        return Mage::getSingleton('customer/session');
    }

    protected function _processDownload($resource, $resourceType)
    {
        $helper = Mage::helper('downloadable/download');
        /*  $helper Mage_Downloadable_Helper_Download */

        $helper-&amp;gt;setResource($resource, $resourceType);

        $fileName       = $helper-&amp;gt;getFilename();
        $contentType    = $helper-&amp;gt;getContentType();

        $this-&amp;gt;getResponse()
            -&amp;gt;setHttpResponseCode(200)
            -&amp;gt;setHeader('Pragma', 'public', true)
            -&amp;gt;setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true)
            -&amp;gt;setHeader('Content-type', $contentType, true);

        if ($fileSize = $helper-&amp;gt;getFilesize()) {
            $this-&amp;gt;getResponse()
                -&amp;gt;setHeader('Content-Length', $fileSize);
        }

        if ($contentDisposition = $helper-&amp;gt;getContentDisposition()) {
            $this-&amp;gt;getResponse()
                -&amp;gt;setHeader('Content-Disposition', $contentDisposition . '; filename='.$fileName);
        }

        $this-&amp;gt;getResponse()
            -&amp;gt;clearBody();
        $this-&amp;gt;getResponse()
            -&amp;gt;sendHeaders();

        session_write_close();
        $helper-&amp;gt;output();
    }

    /**
     * Download sample action
     *
     */
    public function sampleAction()
    {
        $sampleId = $this-&amp;gt;getRequest()-&amp;gt;getParam('sample_id', 0);
        $sample = Mage::getModel('downloadable/sample')-&amp;gt;load($sampleId);
        if (
            $sample-&amp;gt;getId()
            &amp;amp;&amp;amp; Mage::helper('catalog/product')
                -&amp;gt;getProduct((int) $sample-&amp;gt;getProductId(), Mage::app()-&amp;gt;getStore()-&amp;gt;getId(), 'id')
                -&amp;gt;isAvailable()
        ) {
            $resource = '';
            $resourceType = '';
            if ($sample-&amp;gt;getSampleType() == Mage_Downloadable_Helper_Download::LINK_TYPE_URL) {
                $resource = $sample-&amp;gt;getSampleUrl();
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_URL;
            } elseif ($sample-&amp;gt;getSampleType() == Mage_Downloadable_Helper_Download::LINK_TYPE_FILE) {
                $resource = Mage::helper('downloadable/file')-&amp;gt;getFilePath(
                    Mage_Downloadable_Model_Sample::getBasePath(), $sample-&amp;gt;getSampleFile()
                );
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_FILE;
            }
            try {
                $this-&amp;gt;_processDownload($resource, $resourceType);
                exit(0);
            } catch (Mage_Core_Exception $e) {
                $this-&amp;gt;_getSession()-&amp;gt;addError(Mage::helper('downloadable')-&amp;gt;__('Sorry, there was an error getting requested content. Please contact the store owner.'));
            }
        }
        return $this-&amp;gt;_redirectReferer();
    }

    /**
     * Download link's sample action
     *
     */
    public function linkSampleAction()
    {
        $linkId = $this-&amp;gt;getRequest()-&amp;gt;getParam('link_id', 0);
        $link = Mage::getModel('downloadable/link')-&amp;gt;load($linkId);
        if (
            $link-&amp;gt;getId()
            &amp;amp;&amp;amp; Mage::helper('catalog/product')
                -&amp;gt;getProduct((int) $link-&amp;gt;getProductId(), Mage::app()-&amp;gt;getStore()-&amp;gt;getId(), 'id')
                -&amp;gt;isAvailable()
        ) {
            $resource = '';
            $resourceType = '';
            if ($link-&amp;gt;getSampleType() == Mage_Downloadable_Helper_Download::LINK_TYPE_URL) {
                $resource = $link-&amp;gt;getSampleUrl();
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_URL;
            } elseif ($link-&amp;gt;getSampleType() == Mage_Downloadable_Helper_Download::LINK_TYPE_FILE) {
                $resource = Mage::helper('downloadable/file')-&amp;gt;getFilePath(
                    Mage_Downloadable_Model_Link::getBaseSamplePath(), $link-&amp;gt;getSampleFile()
                );
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_FILE;
            }
            try {
                $this-&amp;gt;_processDownload($resource, $resourceType);
                exit(0);
            } catch (Mage_Core_Exception $e) {
                $this-&amp;gt;_getCustomerSession()-&amp;gt;addError(Mage::helper('downloadable')-&amp;gt;__('Sorry, there was an error getting requested content. Please contact the store owner.'));
            }
        }
        return $this-&amp;gt;_redirectReferer();
    }

    /**
     * Download link action
     */
    public function linkAction()
    {
        $id = $this-&amp;gt;getRequest()-&amp;gt;getParam('id', 0);
        $linkPurchasedItem = Mage::getModel('downloadable/link_purchased_item')-&amp;gt;load($id, 'link_hash');
        if (! $linkPurchasedItem-&amp;gt;getId() ) {
            $this-&amp;gt;_getCustomerSession()-&amp;gt;addNotice(Mage::helper('downloadable')-&amp;gt;__("Requested link does not exist."));
            return $this-&amp;gt;_redirect('*/customer/products');
        }
        if (!Mage::helper('downloadable')-&amp;gt;getIsShareable($linkPurchasedItem)) {
            $customerId = $this-&amp;gt;_getCustomerSession()-&amp;gt;getCustomerId();
            if (!$customerId) {
                $product = Mage::getModel('catalog/product')-&amp;gt;load($linkPurchasedItem-&amp;gt;getProductId());
                if ($product-&amp;gt;getId()) {
                    $notice = Mage::helper('downloadable')-&amp;gt;__('Please log in to download your product or purchase &amp;lt;a href="%s"&amp;gt;%s&amp;lt;/a&amp;gt;.', $product-&amp;gt;getProductUrl(), $product-&amp;gt;getName());
                } else {
                    $notice = Mage::helper('downloadable')-&amp;gt;__('Please log in to download your product.');
                }
                $this-&amp;gt;_getCustomerSession()-&amp;gt;addNotice($notice);
                $this-&amp;gt;_getCustomerSession()-&amp;gt;authenticate($this);
                $this-&amp;gt;_getCustomerSession()-&amp;gt;setBeforeAuthUrl(Mage::getUrl('downloadable/customer/products/'),
                    array('_secure' =&amp;gt; true)
                );
                return ;
            }
            $linkPurchased = Mage::getModel('downloadable/link_purchased')-&amp;gt;load($linkPurchasedItem-&amp;gt;getPurchasedId());
            if ($linkPurchased-&amp;gt;getCustomerId() != $customerId) {
                $this-&amp;gt;_getCustomerSession()-&amp;gt;addNotice(Mage::helper('downloadable')-&amp;gt;__("Requested link does not exist."));
                return $this-&amp;gt;_redirect('*/customer/products');
            }
        }
        $downloadsLeft = $linkPurchasedItem-&amp;gt;getNumberOfDownloadsBought()
            - $linkPurchasedItem-&amp;gt;getNumberOfDownloadsUsed();

        $status = $linkPurchasedItem-&amp;gt;getStatus();
        if ($status == Mage_Downloadable_Model_Link_Purchased_Item::LINK_STATUS_AVAILABLE
            &amp;amp;&amp;amp; ($downloadsLeft || $linkPurchasedItem-&amp;gt;getNumberOfDownloadsBought() == 0)
        ) {
            $resource = '';
            $resourceType = '';
            if ($linkPurchasedItem-&amp;gt;getLinkType() == Mage_Downloadable_Helper_Download::LINK_TYPE_URL) {
                $resource = $linkPurchasedItem-&amp;gt;getLinkUrl();
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_URL;
            } elseif ($linkPurchasedItem-&amp;gt;getLinkType() == Mage_Downloadable_Helper_Download::LINK_TYPE_FILE) {
                $resource = Mage::helper('downloadable/file')-&amp;gt;getFilePath(
                    Mage_Downloadable_Model_Link::getBasePath(), $linkPurchasedItem-&amp;gt;getLinkFile()
                );
                $resourceType = Mage_Downloadable_Helper_Download::LINK_TYPE_FILE;
            }
            try {
                $this-&amp;gt;_processDownload($resource, $resourceType);
                $linkPurchasedItem-&amp;gt;setNumberOfDownloadsUsed($linkPurchasedItem-&amp;gt;getNumberOfDownloadsUsed() + 1);

                if ($linkPurchasedItem-&amp;gt;getNumberOfDownloadsBought() != 0 &amp;amp;&amp;amp; !($downloadsLeft - 1)) {
                    $linkPurchasedItem-&amp;gt;setStatus(Mage_Downloadable_Model_Link_Purchased_Item::LINK_STATUS_EXPIRED);
                }
                $linkPurchasedItem-&amp;gt;save();
                exit(0);
            }
            catch (Exception $e) {
                $this-&amp;gt;_getCustomerSession()-&amp;gt;addError(
                    Mage::helper('downloadable')-&amp;gt;__('An error occurred while getting the requested content. Please contact the store owner.')
                );
            }
        } elseif ($status == Mage_Downloadable_Model_Link_Purchased_Item::LINK_STATUS_EXPIRED) {
            $this-&amp;gt;_getCustomerSession()-&amp;gt;addNotice(Mage::helper('downloadable')-&amp;gt;__('The link has expired.'));
        } elseif ($status == Mage_Downloadable_Model_Link_Purchased_Item::LINK_STATUS_PENDING
            || $status == Mage_Downloadable_Model_Link_Purchased_Item::LINK_STATUS_PAYMENT_REVIEW
        ) {
            $this-&amp;gt;_getCustomerSession()-&amp;gt;addNotice(Mage::helper('downloadable')-&amp;gt;__('The link is not available.'));
        } else {
            $this-&amp;gt;_getCustomerSession()-&amp;gt;addError(
                Mage::helper('downloadable')-&amp;gt;__('An error occurred while getting the requested content. Please contact the store owner.')
            );
        }
        return $this-&amp;gt;_redirect('*/customer/products');
    }

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, you said it should not get anymore the file size because you set "&lt;SPAN&gt;Transfer-Encoding: chunked". How should it handle without it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:39:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576753#M26897</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-09T18:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576757#M26898</link>
      <description>&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just comment out the lines in the controller responsible for set the header "Content-Length" and then set the header&amp;nbsp; "Transfer-Encoding: chunked".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File:&amp;nbsp;&lt;STRONG&gt;app/code/core/Mage/Downloadable/controllers/DownloadController.php&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on&amp;nbsp;&lt;SPAN&gt;_processDownload method on line 73 comment out these lines and add this other:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
protected function _processDownload($resource, $resourceType)
        ....

        // if ($fileSize = $helper-&amp;gt;getFilesize()) {
        //     $this-&amp;gt;getResponse()
        //         -&amp;gt;setHeader('Content-Length', $fileSize);
        // }

        $this-&amp;gt;getResponse()
        -&amp;gt;setHeader('Transfer-Encoding', 'chunked');

        ....
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it works but could you please tell me if there are some other headers to add or remove?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:57:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576757#M26898</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-09T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576762#M26900</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you got this working. I can't provide guidance on what other headers you should or shouldn't be setting though, as that depends on how the app works and what the app does.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:12:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576762#M26900</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-09T19:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576765#M26901</link>
      <description>&lt;P&gt;Sure, I understand. However, did you guys change just that recently?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:19:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576765#M26901</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-09T19:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576795#M26902</link>
      <description>&lt;P&gt;Yes, that update was deployed towards the end of January.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:57:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576795#M26902</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-09T20:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576834#M26903</link>
      <description>&lt;P&gt;Thanks for your support.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 22:58:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/576834#M26903</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-09T22:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/577883#M26964</link>
      <description>&lt;P&gt;Update: in order to temporarily accommodate clients that don’t properly support automatically handling “Transfer-Encoding: chunked”, we’re temporarily rolling back this change, so that these links will no longer use “Transfer-Encoding: chunked” and will instead return “Content-Length” on HTTP/1.1. We will begin rolling that out starting around 2/17. That will be in place until around 3/1. At that point, we will begin using “Transfer-Encoding: chunked” and no longer returning “Content-Length” on HTTP/1.1 again.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Going forward, please ensure that your clients are able to automatically handle both chunked encoding and non-chunked encoding automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 21:59:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/577883#M26964</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-14T21:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/577933#M26976</link>
      <description>&lt;P&gt;Then I'll set it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if ($fileSize = $helper-&amp;gt;getFilesize()) {
    $this-&amp;gt;getResponse()-&amp;gt;setHeader('Content-Length', $fileSize);
} else {
    $this-&amp;gt;getResponse()-&amp;gt;setHeader('Transfer-Encoding', 'chunked');
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Feb 2022 23:57:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/577933#M26976</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2022-02-14T23:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/582954#M27156</link>
      <description>&lt;P&gt;Update: the team has been able to complete some further updates to our infrastructure to be able to support the previous non-chunked behavior going forward indefinitely. That means that we plan to continue returning Content-Length (and not 'Transfer-Encoding: chunked') in the future and will not be reverting this as previously planned. (Regardless, for HTTP compatibility in general, we still recommend you make sure your HTTP clients support both types.) Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 12:37:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/582954#M27156</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-11T12:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Since 31/01/22 all the download files become corrupted.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/754523#M33031</link>
      <description>&lt;P&gt;I noticed, since around September/October 2023,&amp;nbsp;downloads really often (8 in 10 times) are interrupted at different size. And just now I remembered this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you change something again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloads-sometimes-are-interrupted-at-different-size/td-p/735925" target="_self"&gt;I also opened this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 00:36:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Since-31-01-22-all-the-download-files-become-corrupted/m-p/754523#M33031</guid>
      <dc:creator>kamzata</dc:creator>
      <dc:date>2024-03-02T00:36:57Z</dc:date>
    </item>
  </channel>
</rss>

