mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 15:32:17 +00:00
Bugfix - Zipdownload funktioniert nun auch bei größeren Zip-Files
This commit is contained in:
@@ -308,7 +308,16 @@ else
|
||||
{
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-disposition: attachment; filename="Abgabe_'.$s->kuerzel.'.zip"');
|
||||
echo file_get_contents($zipausgabe);
|
||||
$handle = fopen($zipausgabe, "rb");
|
||||
|
||||
while (!feof($handle))
|
||||
{
|
||||
echo fread($handle, 1024);
|
||||
}
|
||||
|
||||
fclose($handle);
|
||||
|
||||
//echo file_get_contents($zipausgabe);
|
||||
unlink($zipausgabe);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user