If you know the `contentType` throw that on `fd` as well, and send it to to the server with the file.