且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

fetch - multipart/form-data POST 中缺少边界

更新时间:2022-01-25 08:41:22

解决问题的方法是显式设置Content-Typeundefined,这样你的浏览器或者您使用的任何客户端都可以设置它并为您添加该边界值.令人失望但真实.

The solution to the problem is to explicitly set Content-Type to undefined so that your browser or whatever client you're using can set it and add that boundary value in there for you. Disappointing but true.