Categories
CSS & HTML Tips

HTML Form doesn’t upload the file?

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!

By Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.