如何使用html将文件上传到我的服务器 [英] how to upload a file to my server using html
本文介绍了如何使用html将文件上传到我的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
basically i have this form that allows user to upload to my server:
基本上我有这个表单,允许用户上传到我的服务器: =postaction =#>
< input id =fileuploadtype =file/>
< input type =submitvalue =submitid =submit/>
< / form>
<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.
推荐答案
<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>
你需要这个表单类型,然后用一些php来处理这个文件:
You need that form type and then some php to process the file :)
如果您想要开箱即用的自定义功能,您应该查看 Uploadify 。
You should probably check out Uploadify if you want something very customisable out of the box.
这篇关于如何使用html将文件上传到我的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文