diff --git a/catch/system/controller/Attachments.php b/catch/system/controller/Attachments.php index 60234a4..d47f5e2 100644 --- a/catch/system/controller/Attachments.php +++ b/catch/system/controller/Attachments.php @@ -42,7 +42,7 @@ class Attachments extends CatchController if ($attachment->driver == 'local') { $localPath = config('filesystem.disks.local.root') . DIRECTORY_SEPARATOR; $path = $localPath . str_replace('\\','\/', $attachment->path); - if (!FileSystem::exists($path)) { + if (FileSystem::exists($path)) { Filesystem::delete($path); } } else {