This commit is contained in:
An Phan 2016-07-09 13:19:58 +08:00
parent fad1d2f335
commit 2f0d0dc042
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -67,7 +67,7 @@ class Download
// Start gathering the songs into a zip file. // Start gathering the songs into a zip file.
$zip = new ZipArchive(); $zip = new ZipArchive();
// We use system's temp dir instead storage_path() here, so that the generated files // We use system's temp dir instead of storage_path() here, so that the generated files
// can be cleaned up automatically after server reboot. // can be cleaned up automatically after server reboot.
$filename = rtrim(sys_get_temp_dir(), '/').'/koel-download-'.uniqid().'.zip'; $filename = rtrim(sys_get_temp_dir(), '/').'/koel-download-'.uniqid().'.zip';
if ($zip->open($filename, ZipArchive::CREATE) !== true) { if ($zip->open($filename, ZipArchive::CREATE) !== true) {