When a file is uploaded in an http request, the request body should contain a "Content-Type" header for each file part of the request. The MIME type of the file should be determined based on the file's extension, which currently does not work and all files are sent as the default "application/octet-stream" type.