Remove temporary PDF file after generation

This commit is contained in:
philipp lang 2021-10-31 13:04:26 +01:00
parent 9ed63828db
commit 4008643e5b
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class PdfCompressor extends Compressor
$versionFilename = $destination.'/'.$this->versionFilename($source, $destWidth, $destHeight); $versionFilename = $destination.'/'.$this->versionFilename($source, $destWidth, $destHeight);
Storage::put($versionFilename, file_get_contents($temp)); Storage::put($versionFilename, file_get_contents($temp));
unlink($temp);
} }
} }