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

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

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

4条回答
  •  无人及你
    2020-12-13 13:49

    multipart/form-data is a lot bulkier than application/x-www-form-urlencoded; the latter is just a bunch of keys and values (and can be parsed the same way whether for GET or POST), whereas the former requires full MIME support, and is thus more useful when you have data that can't simply be represented as key/value pairs.

提交回复
热议问题