SAAS-542: ryerson.airtime.pro file doesn't play, preview, or download
This commit is contained in:
parent
29c5cf5de0
commit
527d2851af
|
@ -65,9 +65,14 @@ class CloudFile extends BaseCloudFile
|
|||
*/
|
||||
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(
|
||||
CURLOPT_URL => $this->getURLForTrackPreviewOrDownload(),
|
||||
CURLOPT_FILE, $fp,
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
CURLOPT_VERBOSE => false
|
||||
|
|
Loading…
Reference in New Issue