/**
* Attempts to get a single file from the collection of uploaded files.
*
* @return UploadedFile|null
*/
public function getFile(string
$name) { $this->
populateFiles();
if ($this->
hasFile($name)) { if (strpos($name, '.'
) !== false
) { $name =
explode('.',
$name);
$uploadedFile =
$this->
getValueDotNotationSyntax($name,
$this->files
);
return $uploadedFile instanceof UploadedFile ?
$uploadedFile : null;
} if (array_key_exists($name,
$this->files
)) { $uploadedFile =
$this->files
[$name];
return $uploadedFile instanceof UploadedFile ?
$uploadedFile : null;
}