v9.0.0 : download zip ok !!

This commit is contained in:
fredtempez 2018-12-26 20:31:56 +01:00
parent f620b45c60
commit 3b9cf3b7ea

View File

@ -542,10 +542,13 @@ class theme extends common {
}
$zip->close();
// Téléchargement du ZIP
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: attachment; filename="' . $zipFileName . '"');
header('Content-Length: ' . filesize('site/tmp/' . $zipFileName));
readfile('site/tmp/' . $zipFileName);
header('Content-Disposition: attachment; filename="' . $zipFilename . '"');
header('Content-Length: ' . filesize('site/tmp/' . $zipFilename));
readfile('site/tmp/' . $zipFilename);
// Valeurs en sortie
$this->addOutput([
'display' => self::DISPLAY_RAW