forked from fanch-le-colporteur/G1BILLET
"/tmp/g1billet/".$timestamp.".pdf"
This commit is contained in:
parent
08115f76f7
commit
4811628e52
|
@ -14,12 +14,10 @@ if (file_exists($attachment_location)) {
|
|||
header("Content-Length:".filesize($attachment_location));
|
||||
header("Content-Disposition: attachment; filename=".$timestamp.".pdf");
|
||||
readfile($attachment_location);
|
||||
// unlink("/tmp/g1billet/".$timestamp.".pdf");
|
||||
die();
|
||||
} else {
|
||||
die("Error: File not found.");
|
||||
}
|
||||
|
||||
shell_exec(rm -f "/tmp/g1billet/".$timestamp.".pdf");
|
||||
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue