diff --git a/Service/LocalImageUploader.php b/Service/LocalImageUploader.php index ceb4b9e..f26628b 100644 --- a/Service/LocalImageUploader.php +++ b/Service/LocalImageUploader.php @@ -42,6 +42,7 @@ public function uploadImage(string $url): string // Check if file already exists if (!\file_exists($path)) { // Save the file + \mkdir(dirname($path)); \file_put_contents($path, $file); }