title: Upload File with Cypress.io via Request
body: <p>Given this simple form</p>
  
  <pre><code>&lt;form action="/upload_file" method="POST" enctype="multipart/form-data" id="upload_file_form"&gt;
      &lt;input type="file" name="file" required&gt;
      &lt;input type="text" placeholder="Select file" disabled&gt;
      &lt;input type="submit" value="upload"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Since native events are not supported by cypress.io (can't select a file), I have to use a post-request.</p>
  
  <p>The request structure in cypress.io looks like</p>
  
  <pre><code>cy.request({
      method: 'POST',
      url: '/some/url',
      form: true,
      body: { ... },
      headers:{ ... }
  })
  </code></pre>
  
  <p>I would like to know how I could send a simple *.txt</p>
  
  <p>Any suggestions appreciated!</p>