gestion des headers
This commit is contained in:
parent
83d3cb5f4a
commit
6487cb4532
@ -226,13 +226,13 @@ class EnrichissementController extends Zend_Controller_Action
|
||||
if ( file_exists($path.'/'.$file) ) {
|
||||
header('Content-Transfer-Encoding: none');
|
||||
header('Content-type: ' . $content_type.'');
|
||||
header('Content-Length: ' . filesize($path.$file));
|
||||
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
|
||||
header('Content-Disposition: filename="' . basename($path.$file) . '"');
|
||||
header('Content-Length: ' . filesize($path.'/'.$file));
|
||||
header('Content-MD5: ' . base64_encode(md5_file($path.'/'.$file)));
|
||||
header('Content-Disposition: filename="' . basename($path.'/'.$file) . '"');
|
||||
header('Cache-Control: private, max-age=0, must-revalidate');
|
||||
header('Pragma: public');
|
||||
ini_set('zlib.output_compression', '0');
|
||||
echo file_get_contents($path.$file);
|
||||
echo file_get_contents($path.'/'.$file);
|
||||
} else {
|
||||
echo 'Impossible de charger le fichier.';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user