html – What does enctype=’multipart/form-data’ mean? – Stack Overflow

html – What does enctype=’multipart/form-data’ mean? – Stack Overflow

accepted When you make a POST request, you have to encode the data that forms the body of the request in some way.HTML forms provide three methods of encoding. application/x-www-form-urlencoded the default multipart/form-data text/plainThe specifics of the formats don’t matter to most developers. The important points are:When you are writing client-side code, all you need to know is use multipart/form-data when your form includes any elements.When you are writing server-side code: Use a prewritten form handling library e.g. Perl’s CGI->param or the one exposed by PHP’s $_POST superglobal and it will take care of the differences for you. Don’t bother trying to parse the raw input received by the server

via html – What does enctype=’multipart/form-data’ mean? – Stack Overflow.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s