how to upload a file to my server using html -
basically have form allows user upload server:
<form id = "uploadbanner" method = "post" action = "#"> <input id = "fileupload" type = "file" /> <input type = "submit" value = "submit" id = "submit" /> </form> but problem when upload file, click submit, don't see file upload in server directory.
<form id="uploadbanner" enctype="multipart/form-data" method="post" action="#"> <input id="fileupload" name="myfile" type="file" /> <input type="submit" value="submit" id="submit" /> </form> you need form type , php process file :)
you should check out uploadify if want customisable out of box.
Comments
Post a Comment