summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-24 16:18:36 +0300
committerAndrew Dolgov <[email protected]>2022-11-24 16:18:36 +0300
commit594f6cab1a2f467cf180b382bd76aff2b8591036 (patch)
tree7a0d6c4eeccf4e4f441fe300da721fd2a583e8da /init.php
parent80becb9afc3f2b651cc3574df344ded879cbf151 (diff)
fix put method not returning proper results
Diffstat (limited to 'init.php')
-rw-r--r--init.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.php b/init.php
index 00e38e1..187c0f3 100644
--- a/init.php
+++ b/init.php
@@ -96,8 +96,13 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
'Key' => $this->dir . '/' . $filename,
'Body' => $data
]);
+
+ // couldn't find something like 'uploaded bytes' in \Aws\Result
+ return strlen($data);
+
} catch (AwsException $e) {
user_error($e, E_USER_WARNING);
+ return false;
}
}