What is the meaning of enctype='multipart/form-data' in HTML forms?

I have seen the code segment enctype='multipart/form-data' is used in forms. Can someone please explain me why this is used?


  • Use enctype='multipart/form-data' if your form has any <input type="file"> elements.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion