diff --git a/src/Upload/Listener/UploadListener.php b/src/Upload/Listener/UploadListener.php index 6f4c113..f034b43 100644 --- a/src/Upload/Listener/UploadListener.php +++ b/src/Upload/Listener/UploadListener.php @@ -57,6 +57,7 @@ public function process(object $event): void $fileInfo->getSize(), $this->filesystem->publicUrl($path . '/' . $filename) )); + @unlink($fileInfo->getRealPath()); } }