The name can be a plain string or a string like an array element (e.g. 'Post[imageFile]', or 'Post[0][imageFile]').
public static getInstanceByName ( string $name ) : null | |
||
$name | string | the name of the file input field. |
return | null | |
the instance of the uploaded file. Null is returned if no file is uploaded for the specified name. |