Open Markyb0y opened 11 years ago
so I have found that apparently passthru('cat $filename'); is a workaround that will allow the use of large files
any chance you can assist in recoding whichever lines are required to make this work? assuming it would only be on the download buttons so maybe only 3 lines of code?
thanks
Hi,
It would appear that it cannot handle file over 2GB in size?
when I click the download button on any file over 2GB I see
failed to open stream: Value too large for defined data type
COREPATH/classes/file.php @ line 726
721 if ( ! $fileinfo = new \finfo(FILEINFO_MIME, \Config::get('file.magic_file', null))) 722 { 723 throw new \InvalidArgumentException('Can not retrieve information about this file.'); 724 } 725 726 $fileinfo = explode(';', $fileinfo->file($info['realpath'])); 727 728 $info['mimetype'] = isset($fileinfo[0]) ? $fileinfo[0] : 'application/octet-stream'; 729 730 if (isset($fileinfo[1])) 731 {
how to increase the file size limit? some of my movies are very large files?