Content type for file part of the multipart/form-data request is set wrong by the client

谁说胖子不能爱 提交于 2019-12-06 02:56:16

Ok, we managed to figure out this issue. It turned out that the content type registered to the client system was actually malformed on some client machines, that had certain third-party application installed.

We cannot programmatically change the content type browser sets for the part. As Michael-O pointed out, you should always use content-types registered with the IANA. Here's a link to the standard.

In this case it was third-party software that registered illegal content type to client's system. Content type may not contain white spaces, so the content type EXT Project Data is clearly illegal. We fixed the issue by changing the registered content type to a custom content type. So the content type we are now using is application/x-ext-project-data, which is then handled properly on the server side.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!