dave dave - 2 years ago 101
HTML Question

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" />

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

Answer Source
<form id="uploadbanner" enctype="multipart/form-data" method="post" action="#">
   <input id="fileupload" name="myfile" type="file" />
   <input type="submit" value="submit" id="submit" />

You need that form type and then some php to process the file :)

You should probably check out Uploadify if you want something very customisable out of the box.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download