CC-3968: Cannot preview file as * .MP3
-fixed
This commit is contained in:
parent
d8a1a17f19
commit
22453f3820
4 changed files with 10 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue