diff --git a/filesystem/File.php b/filesystem/File.php index aca659183..3fdc32a6d 100644 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -872,7 +872,7 @@ class File extends DataObject { // TODO Merge this with Upload_Validator $extension = $this->getExtension(); $allowed = array_map('strtolower', $this->config()->allowed_extensions); - if($extension && !in_array(strtolower($extension), $allowed)) { + if(!in_array(strtolower($extension), $allowed)) { $exts = $allowed; sort($exts); $message = sprintf(