"/tmp/g1billet/".$timestamp.".pdf"

This commit is contained in:
qo-op 2021-01-25 01:25:44 +01:00
parent 08115f76f7
commit 4811628e52
1 changed files with 1 additions and 3 deletions

View File

@ -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");
?>