[html] how to upload a file to my server using html

basically i have this form that allows user to upload to my server:

<form id = "uploadbanner" method = "post" action = "#">
      <input id = "fileupload" type = "file" />
      <input type = "submit" value = "submit" id = "submit" />
</form>

But the problem is that when i upload a file, then click submit, i don't see the file upload in the server directory.

This question is related to html file-upload

The answer is


You need enctype="multipart/form-data" otherwise you will load only the file name and not the data.


On top of what the others have already stated, some sort of server-side scripting is necessary in order for the server to read and save the file.

Using PHP might be a good choice, but you're free to use any server-side scripting language. http://www.w3schools.com/php/php_file_upload.asp may be of use on that end.