Honor body format before uploading file type parameters

Current behavior is that if a file upload type parameter is added, the body format is ignored. This PR checks the body format and throws an error message if the body format is incorrect delegating it to the user to set the correct body format instead of assuming that the user wants to use body format "form data" when a file upload type parameter is added.