Why not always use enctype=“multipart/form-data”?

后端 未结 4 823
梦如初夏
梦如初夏 2020-12-13 13:11

When building HTML forms why do we not always use enctype=\"multipart/form-data\"?

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 13:51

    Mulipart implicits that we are going to use different mime-types. For example, sending a binary file, you will have one part with the x-www-form-urlencoded part and the other with the octet-stream. Most of the times what you send is from the same mime type.

提交回复
热议问题