title: React Formik file upload with laravel back-end
body: <p>I'am using Formik for my forms in React. Everything is okay but for the file input. </p>
  
  <p>The user must be able to upload a CV. The {values.cv} in Formik does indicate that there is a value in the input. However when I send it to my Laravel back-end, I get an empty array.</p>
  
  <p>I want to be able to store the file in my database.
  Any help would be appreciated.</p>
  
  <p>The Formik file input:</p>
  
  <pre><code>&lt;label className="btn btn-info" htmlFor="cv"&gt;
      &lt;input id="cv" name="cv" style={{display: 'none'}} type="file" onChange={(event) =&gt; {
       setFieldValue("cv", event.currentTarget.files[0]);
                                      }} /&gt;                   
     &lt;/label&gt;
  </code></pre>
  
  <p>The cv input default value is : ' '</p>
  
  <p>This is what is in the {values.cv}
  <a href="https://i.stack.imgur.com/frF1U.png" rel="nofollow noreferrer">Here is the console.log of it</a></p>
  
  <p>In my Laravel back-end I return the $request and React is logging it.
  This is what I see then.</p>
  
  <p>cv : []</p>
  
  <p><a href="https://i.stack.imgur.com/etP7h.png" rel="nofollow noreferrer">Here is a picture of my console</a></p>