Closed doziteh closed 7 years ago
Hi, "else" makes sense, but due to $chunk_size = 16 * 1024 * 1024;
line is hardcoded it should always go to "if". What was your problem? Won't you be able to download file with the initial code? Any error? I would like to reproduce your problem while download process.
In php connector LocalFilemanager.php line 852 actionDownload() method ... $chunk_size = 16 1024 1024; // read file by chunks to handle large files
No else? Pretty sure this is not correct... I added
else { $handle = fopen($target_fullpath, 'rb'); echo fread($handle, $file_size); @ob_flush(); @flush();
and now I can download files...