getInstances() public static method
Returns all uploaded files for the given model attribute.
public static yii\web\UploadedFile[] getInstances ( $model, $attribute )$model yii\base\Model
The data model $attribute string
The attribute name. The attribute name may contain array indexes for tabular file uploading, e.g. '[1]file'. return
yii\web\UploadedFile[]
Array of UploadedFile objects. Empty array is returned if no available file was found for the given attribute.