title: react-hook-form: Failed to set the 'value' property on 'HTMLInputElement'
body: <p>I am trying to use react hook form for user input to upload file</p>
  <pre><code>import &quot;./styles.css&quot;;
  import { useForm, Controller } from &quot;react-hook-form&quot;;
  import {
    Col,
    Row,
    Form,
    FormGroup,
    InputGroup,
    Input,
    Container,
    Button
  } from &quot;reactstrap&quot;;
  
  export default function App() {
    const onSubmit = (data) =&gt; {
      console.log(data);
    };
  
    const { control, handleSubmit } = useForm();
  
    return (
      &lt;Container&gt;
        &lt;Form onSubmit={handleSubmit(onSubmit)}&gt;
          &lt;Row className=&quot;m-3&quot;&gt;
            &lt;Col&gt;
              &lt;FormGroup row className=&quot;mr-md-1&quot;&gt;
                &lt;InputGroup className=&quot;mb-3&quot;&gt;
                  &lt;Controller
                    name=&quot;itemlist2&quot;
                    control={control}
                    render={({ field: { ref, ...field } }) =&gt; (
                      &lt;Input
                        {...field}
                        type=&quot;file&quot;
                        required
                        innerRef={ref}
                        onChange={(e) =&gt; {
                          field.onChange(e.target.files);
                        }}
                      /&gt;
                    )}
                  /&gt;
                &lt;/InputGroup&gt;
              &lt;/FormGroup&gt;
            &lt;/Col&gt;
          &lt;/Row&gt;
          &lt;Button color=&quot;primary&quot; className=&quot;mr-1&quot;&gt;
            {&quot;Save Changes&quot;}
          &lt;/Button&gt;
        &lt;/Form&gt;
      &lt;/Container&gt;
    );
  }
  
  </code></pre>
  <p>Check on <a href="https://codesandbox.io/s/affectionate-moon-dmn8q" rel="nofollow noreferrer">https://codesandbox.io/s/affectionate-moon-dmn8q</a></p>
  <p>I get</p>
  <p><a href="https://i.stack.imgur.com/QfqEw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QfqEw.png" alt="enter image description here" /></a></p>