public function buildFileInput($name = '', $id = '', $class = '', $required = false, $accept = '', $attributes = [])
    {
        // Create file input
        $id = $id ?: 'ffi' . mt_rand();
        $element = $this->buildInput($type = 'file', $name, $value = '', $id, $class, $autofocus = false, $required, $attributes);

        // Set accept attribute
        $element->attr('accept', $accept);

        // Return form element
        return $element;
    }