Como faço para enviar um arquivo com a API de busca JS?

Eu ainda estou tentando envolver minha cabeça em torno disso.

Posso fazer com que o usuário selecione o arquivo (ou até vários) com a entrada do arquivo:

<form>
  <div>
    <label>Select file to upload</label>
    <input type="file">
  </div>
  <button type="submit">Convert</button>
</form>

E eu posso pegar osubmit evento usando<fill in your event handler here>. Mas quando eu faço, como envio o arquivo usandofetch?

fetch('/files', {
  method: 'post',
  // what goes here? What is the "body" for this? content-type header?
}).then(/* whatever */);

questionAnswers(7)

yourAnswerToTheQuestion