mp4 handling
This commit is contained in:
@@ -211,14 +211,19 @@ class WrenchMedia extends BaseController
|
||||
// case "mp4": $ctype="video/mp4"; break;
|
||||
default:
|
||||
}
|
||||
header('Content-type: ' . $ctype);
|
||||
|
||||
switch( $file_extension ) {
|
||||
case "mp4":
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Description: File Transfer');
|
||||
//header('Content-Type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename="'.basename($selectedFile).'"');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Pragma: public');
|
||||
break;
|
||||
// case "mp4": $ctype="video/mp4"; break;
|
||||
default:
|
||||
}
|
||||
header('Content-type: ' . $ctype);
|
||||
readfile($selectedFile);
|
||||
}
|
||||
ini_set( "memory_limit", $old_limit );
|
||||
|
||||
Reference in New Issue
Block a user