aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-30 14:12:08 +0000
committerMario <mario@mariovavti.com>2020-12-30 14:12:08 +0000
commit2c4fabba35267a590a86e5a173243dbf82be3606 (patch)
treee112451135b8c65d1602fdab2328d9f6021a64f3 /Zotlabs
parentdff42ffb41d1c42b0255f2ee9d2271598ee3139a (diff)
downloadvolse-hubzilla-2c4fabba35267a590a86e5a173243dbf82be3606.tar.gz
volse-hubzilla-2c4fabba35267a590a86e5a173243dbf82be3606.tar.bz2
volse-hubzilla-2c4fabba35267a590a86e5a173243dbf82be3606.zip
store zip files without compression
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Attach.php4
1 files changed, 2 insertions, 2 deletions
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);
}
}