From 2c4fabba35267a590a86e5a173243dbf82be3606 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 30 Dec 2020 14:12:08 +0000 Subject: store zip files without compression --- Zotlabs/Module/Attach.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Attach.php b/Zotlabs/Module/Attach.php index cf78ac690..f70366448 100644 --- a/Zotlabs/Module/Attach.php +++ b/Zotlabs/Module/Attach.php @@ -55,8 +55,6 @@ class Attach extends Controller { Verify::create('zip_token', 0, $token, json_encode($meta)); Verify::create('download_token', 0, $download_token, $token); - - json_return_and_die([ 'success' => true, 'token' => $token @@ -196,6 +194,8 @@ class Attach extends Controller { else { $file_path = $r['data']['content']; $zip->addFile($file_path, $zip_path); + // compressing can be ressource intensive - just store the data + $zip->setCompressionName($zip_path, ZipArchive::CM_STORE); } } -- cgit v1.2.3