From a9c28c98fe48496a0f0cf20a829e749995a8a5a7 Mon Sep 17 00:00:00 2001 From: Georgios Taranis Date: Fri, 3 May 2019 21:22:54 +0200 Subject: [PATCH] Setting zip64 to true again Downloaded zip files larger than 4GB are corrupted. In my case setting "new ZipStreamer(['zip64' => true])" fixed the issue and I believe that should be the default since the zip64 issues on older nextcloud versions have been fixed. Signed-off-by: alogoc Signed-off-by: Interoute --- lib/private/Streamer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Streamer.php b/lib/private/Streamer.php index 51c2c923c2352..ffa626b48d809 100644 --- a/lib/private/Streamer.php +++ b/lib/private/Streamer.php @@ -68,7 +68,7 @@ public function __construct(IRequest $request, int $size, int $numberOfFiles){ * larger than 4GiB), but it should not happen in the real world. */ if ($size < 4 * 1000 * 1000 * 1000 && $numberOfFiles < 65536) { - $this->streamerInstance = new ZipStreamer(['zip64' => false]); + $this->streamerInstance = new ZipStreamer(['zip64' => true]); } else if ($request->isUserAgent($this->preferTarFor)) { $this->streamerInstance = new TarStreamer(); } else {