aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module')
-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);
}
}