SAAS-542: ryerson.airtime.pro file doesn't play, preview, or download
This commit is contained in:
parent
57a7218a79
commit
775008b274
airtime_mvc/application/models/airtime
|
@ -65,9 +65,14 @@ class CloudFile extends BaseCloudFile
|
||||||
*/
|
*/
|
||||||
public function isValidPhysicalFile()
|
public function isValidPhysicalFile()
|
||||||
{
|
{
|
||||||
$ch = curl_init();
|
$ch = curl_init($this->getURLForTrackPreviewOrDownload());
|
||||||
|
|
||||||
|
// There is not enough memory to download large files so instead
|
||||||
|
// write the file contents to /dev/null
|
||||||
|
$fp = fopen('/dev/null', 'w+');
|
||||||
|
|
||||||
curl_setopt_array($ch, array(
|
curl_setopt_array($ch, array(
|
||||||
CURLOPT_URL => $this->getURLForTrackPreviewOrDownload(),
|
CURLOPT_FILE, $fp,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_SSL_VERIFYPEER => false,
|
CURLOPT_SSL_VERIFYPEER => false,
|
||||||
CURLOPT_VERBOSE => false
|
CURLOPT_VERBOSE => false
|
||||||
|
|
Loading…
Reference in New Issue