mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Modification pour grer plusieurs types de fichiers
This commit is contained in:
parent
f5799dd646
commit
1dad265beb
|
|
@ -25,7 +25,14 @@ $original_file = urldecode($_GET["file"]);
|
|||
|
||||
$filename = basename ($original_file);
|
||||
|
||||
header('Content-type: application/pdf');
|
||||
if ($_GET["type"])
|
||||
{
|
||||
header('Content-type: '.$_GET["type"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
header('Content-type: application/pdf');
|
||||
}
|
||||
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user