Pete Freitag Pete Freitag

Proper enctype for HTML form file uploads

Published on January 06, 2006
By Pete Freitag

I always forget this, but you need to use enctype="multipart/form-data" in your HTML form tag, when doing a file upload (input type="file"). Also don't forget to use method="post" on the form tag.


Proper enctype for HTML form file uploads was first published on January 06, 2006.

Discuss / Follow me on Twitter ↯