HTML Form File Uploads doesn't upload file -


files doesn't uploaded though back-end code correct. tested end code front-end styled code , worked fine.

but in front end code doesn't upload files. removed css , scripts figure out issue.

here simple front end html form :

<form action="upload_handler.php" method="post">     select image upload:     <input type="file" name="filetoupload" id="filetoupload">     <input type="submit" value="upload" name="submit"> </form> 

you forgot mention enctype="multipart/form-data"

<form action="upload_handler.php" enctype="multipart/form-data" method="post">     select image upload:     <input type="file" name="filetoupload" id="filetoupload">     <input type="submit" value="upload" name="submit"> </form> 

Comments