name contains uppercase letters. get file object error.

With the simplest usage, a single file might be submitted like:
<input type="file" name="userFile" />

Controller code :
$file = $this->request->getFile('userFile');

so. $file is null.

FileCollection file Line 182,
$this->files[$name] = $this->createFileObject($file);

$name not be converted to lowercase.
This commit is contained in:
HaoLiang 2018-06-29 17:10:32 +08:00
parent a754b930ad
commit 6043c3afcd

View File

@ -85,8 +85,6 @@ class FileCollection
{
$this->populateFiles();
$name = strtolower($name);
if ($this->hasFile($name))
{