Fixed issue with contentType when uploading a file