New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download shared link as ZIP sends file with damaged header #8798
Comments
For me, it's always this that works. |
Even with this fix on Streamer.php, I still have the problem |
This should have been fixed in #7972, which will be included in Nextcloud 14. If you could verify if the issue is fixed for you in current master branch (do not forget to update too the 3rdparty repository) it would be great :-) Thanks! |
Let's close it then. ;) |
Issue is still there on Nextcloud 15.0.7 |
Issue is still there on Nextcloud 16.0.4 |
@mikeschdesign I can't reproduce this problem in 16.0.4 if the total size of the compressed files is less than 4 GiB (tested with 7-Zip 18.01 x64 in Windows 10 1903). ZipStreamer is now also used without 64 bit mode, if 64 bit is not needed, see lib/private/Streamer.php:
So please check, if this happens always or only for big files. As far I understand the fix, the 64 bit mode is causing problems - so downloading smaller archives which contain less then 4 GiB of uncompressed data should not be a problem any longer. |
I just hit this issue as well. The archive is 1GB, selecting a few less files still gave me this error (700MB). |
I am hitting this issue, still, on doxc documents (zip files). Also <1MB. What I then do is ssh to my nextcloud, get the file from data dir. Not ideal. |
@AbelLykens For me this works without any problem with Nextcloud 18.0.3 and 7-Zip 19.00. And it makes no differnce if you download multiple docx files or some other file type since the result is always a ZIP file. BTW: you can just download single files as well without using ZIP at all. |
Sorry for bumping this thread. It appears it is an apache problem. |
Steps to reproduce
Expected behaviour
The ZIP archive can be downloaded and extracted on the client.
Actual behaviour
7-Zip reports an error in the header:
Maybe this is also the reason why ZIP is not used for macOS - not because of a bug in macOS but some problem in the created ZIP file.
Server configuration
Operating system:
Ubuntu 16.04
Web server:
Apache 2.4
Database:
MariaDB
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
13.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
Update from 12.0.5
Where did you install Nextcloud from:
nextcloud.com
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox 58.0.2
Operating system: Windows 10 Pro x64
The text was updated successfully, but these errors were encountered: