SAAS-542: ryerson.airtime.pro file doesn't play, preview, or download
This commit is contained in:
parent
29c5cf5de0
commit
527d2851af
1 changed files with 8 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue