Proper enctype for HTML form file uploads

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.