diff --git a/app/Services/Utils.php b/app/Services/Utils.php index e8073119..530ca45b 100644 --- a/app/Services/Utils.php +++ b/app/Services/Utils.php @@ -31,6 +31,9 @@ class Utils if (!Storage::disk('textures')->has($hash)) { Storage::disk('textures')->move($path, $hash); + } else { + // delete the temp file + unlink($absolute_path); } return $hash;