diff --git a/src/fields/Assets.php b/src/fields/Assets.php index 436c5f81948..8b01f023b25 100644 --- a/src/fields/Assets.php +++ b/src/fields/Assets.php @@ -250,7 +250,7 @@ public function validateFileSize(ElementInterface $element) $filenames[] = $file['filename']; } } else { - if (filesize($file['location']) > $maxSize) { + if (file_exists($file['location']) && (filesize($file['location']) > $maxSize)) { $filenames[] = $file['filename']; } }