aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-16 23:33:45 +0100
committerMax Kostikov <max@kostikov.co>2018-11-16 23:33:45 +0100
commit238a616292ad5c6e7be97a4dd763a302729abf80 (patch)
treee15cec37cde3aa21a93cfa01dc906e56ebc8bb2e
parent6010b5c6198bf49c39029a657443b5bf1be8b408 (diff)
downloadvolse-hubzilla-238a616292ad5c6e7be97a4dd763a302729abf80.tar.gz
volse-hubzilla-238a616292ad5c6e7be97a4dd763a302729abf80.tar.bz2
volse-hubzilla-238a616292ad5c6e7be97a4dd763a302729abf80.zip
Add filesize for streaming content
-rw-r--r--Zotlabs/Module/Photo.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index 91175c7df..be9d55eb2 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -167,6 +167,7 @@ class Photo extends \Zotlabs\Web\Controller {
$modified = strtotime($e[0]['edited'] . 'Z');
if(intval($e[0]['os_storage'])) {
$streaming = $data;
+ $filesize = filesize($data);
}
else
$filesize = $e[0]['filesize'];