diff options
author | Andrew Dolgov <[email protected]> | 2022-11-24 16:18:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-24 16:18:36 +0300 |
commit | 594f6cab1a2f467cf180b382bd76aff2b8591036 (patch) | |
tree | 7a0d6c4eeccf4e4f441fe300da721fd2a583e8da /init.php | |
parent | 80becb9afc3f2b651cc3574df344ded879cbf151 (diff) |
fix put method not returning proper results
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } } |