From 4008643e5bed2489b23ec6274ac53aab73688766 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 31 Oct 2021 13:04:26 +0100 Subject: [PATCH] Remove temporary PDF file after generation --- compressors/PdfCompressor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compressors/PdfCompressor.php b/compressors/PdfCompressor.php index 815e289..726b7da 100644 --- a/compressors/PdfCompressor.php +++ b/compressors/PdfCompressor.php @@ -72,6 +72,8 @@ class PdfCompressor extends Compressor $versionFilename = $destination.'/'.$this->versionFilename($source, $destWidth, $destHeight); Storage::put($versionFilename, file_get_contents($temp)); + + unlink($temp); } }