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

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

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

4条回答
  •  隐瞒了意图╮
    2020-12-13 13:36

    With PHP it doesn't matter what kind o enctype the form had. You always get key/value pairs.

    So if harder coding is the only reason not to and you are using PHP, just use enctype="multipart/form-data".

    Is there any other reason?

提交回复
热议问题