CC-3968: Cannot preview file as * .MP3

-fixed
This commit is contained in:
Martin Konecny 2012-06-12 11:31:10 -04:00
parent d8a1a17f19
commit 22453f3820
4 changed files with 10 additions and 12 deletions

View file

@ -148,7 +148,7 @@ class ApiController extends Zend_Controller_Action
//user clicks play button for track and downloads it.
header('Content-Disposition: inline; filename="'.$file_base_name.'"');
}
if ($ext === 'mp3'){
if (strtolower($ext) === 'mp3'){
$this->smartReadFile($filepath, 'audio/mpeg');
} else {
$this->smartReadFile($filepath, 'audio/'.$ext);