HTML Form doesn’t upload the file?

by Yang Yang on January 14, 2009

You had the <input type=”file” /> in place, however it just doesn’t seem to be uploading at all at the client side. After choosing a rather big file, the form submission and page reload finish in seconds, what’s wrong?

Well, it’s almost certain that you have forgotten something. Try adding property enctype to <form>:

<form enctype="multipart/form-data" method="post"> ... </form>

Should be working now. Try it again!

Comments on this entry are closed.

Previous post:

Next post: