getInstancesByName() public static method
Returns an array of uploaded files corresponding to the specified file input name.
This is mainly used when multiple files were uploaded and saved as 'files[0]', 'files[1]', 'files[n]'..., and you can retrieve them all by passing 'files' as the name.
public static yii\web\UploadedFile[] getInstancesByName ( $name ) | ||
---|---|---|
$name | string |
The name of the array of files |
return | yii\web\UploadedFile[] |
The array of UploadedFile objects. Empty array is returned if no adequate upload was found. Please note that this array will contain all files from all sub-arrays regardless how deeply nested they are. |
Please login to continue.