diff --git a/src/File/Upload.php b/src/File/Upload.php index 724a8987d..a721dfe3e 100644 --- a/src/File/Upload.php +++ b/src/File/Upload.php @@ -110,7 +110,7 @@ public function getFiles($file = null) */ public function setFiles($files = []) { - if ((is_array($files) || $files instanceof Countable) && count($files) === 0) { + if (null === $files || ((is_array($files) || $files instanceof Countable) && count($files) === 0)) { $this->options['files'] = $_FILES; } else { $this->options['files'] = $files;