mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
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:
parent
a754b930ad
commit
6043c3afcd
@ -85,8 +85,6 @@ class FileCollection
|
||||
{
|
||||
$this->populateFiles();
|
||||
|
||||
$name = strtolower($name);
|
||||
|
||||
if ($this->hasFile($name))
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user