Surf 11 » Proper enctype for HTML form file uploads

Finding the best waves on the web.

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.

Related Entries

Email: (optional, not displayed on site)
   Subscribe to this thread
Comments: (html will be escaped)

Archives   Tags   Contact