v9.0.0 : download zip ok !!
This commit is contained in:
parent
f620b45c60
commit
3b9cf3b7ea
@ -542,10 +542,13 @@ class theme extends common {
|
|||||||
}
|
}
|
||||||
$zip->close();
|
$zip->close();
|
||||||
// Téléchargement du ZIP
|
// Téléchargement du ZIP
|
||||||
|
|
||||||
|
header('Content-Description: File Transfer');
|
||||||
|
header('Content-Type: application/octet-stream');
|
||||||
header('Content-Transfer-Encoding: binary');
|
header('Content-Transfer-Encoding: binary');
|
||||||
header('Content-Disposition: attachment; filename="' . $zipFileName . '"');
|
header('Content-Disposition: attachment; filename="' . $zipFilename . '"');
|
||||||
header('Content-Length: ' . filesize('site/tmp/' . $zipFileName));
|
header('Content-Length: ' . filesize('site/tmp/' . $zipFilename));
|
||||||
readfile('site/tmp/' . $zipFileName);
|
readfile('site/tmp/' . $zipFilename);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'display' => self::DISPLAY_RAW
|
'display' => self::DISPLAY_RAW
|
||||||
|
Loading…
Reference in New Issue
Block a user