Skip to content

Commit

Permalink
Fix wrong temp path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander De la Marche committed Apr 11, 2021
1 parent adbcdfa commit 7549f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/PdfGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function generate(string $html, string $path, array $options = []): ?stri
{
// Generate a random, temp filename and creation date
$tempName = bin2hex(random_bytes(32)) . '.html';
$tempPath = sys_get_temp_dir() . 'tmp/' . $tempName;
$tempPath = sys_get_temp_dir() . '/' . $tempName;

// Save it in a temp file (Chrome can't load HTML from a blob)
$this->fileSystem->dumpFile($tempPath, $html);
Expand Down

0 comments on commit 7549f28

Please sign in to comment.