diff --git a/inc/content.php b/inc/content.php index 725f8aa..f00c26a 100644 --- a/inc/content.php +++ b/inc/content.php @@ -190,7 +190,7 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) { Download - Download + Download '; diff --git a/index.php b/index.php index 7c310c4..34fad85 100644 --- a/index.php +++ b/index.php @@ -103,6 +103,7 @@ function sendVideo($bc, $file) { global $fullListFile; $path = chunk_split($bc, 8, '/'); $fileName = html_entity_decode($fullListFile[$file]['title']); + $fileSize = filesize($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm'); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); @@ -111,10 +112,10 @@ function sendVideo($bc, $file) { header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); - header('Content-Length: '.filesize($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm')); + header('Content-Length: '.$fileSize); ob_clean(); flush(); - readfile($path.$file); + readfile($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm'); exit ; }