private function fileOfType($type, $inputID, $inputName, $chooseText, $preselectedFile = null, $args = [])
    {
        if (!is_array($args)) {
            $args = [];
        }
        if (!isset($args['filters']) || !is_array($args['filters'])) {
            $args['filters'] = [];
        }
        $args['filters'] = array_merge(
            [
                [
                    'field' => 'type',
                    'type' => (int) $type,
                ],
            ],
            $args['filters']
        );

        return $this->file($inputID, $inputName, $chooseText, $preselectedFile, $args);
    }