Currently in the JS / Fetch example, it shows multipart file uploads like so:

This doesn't work as it just sends the string "logo.png" instead of the file.
A better example might be:
// HTML file input, chosen by user
const fileInputs = document.querySelectorAll('input[type="file"]')
form.append("file", fileInputs[0].files[0]);
Currently in the JS / Fetch example, it shows multipart file uploads like so:
This doesn't work as it just sends the string "logo.png" instead of the file.
A better example might be: