我想使用 Ajax 和 php 上传文件.我有一个带有 标签的表单.我希望当用户浏览文件并单击提交时,该文件无需刷新即可上传.我该怎么做?是否刷新无关紧要,但我想借助 ajax 上传文件.
I want to upload a file using Ajax and php. I have a form with <input type="file">
tag. I want when user browses a file and clicks on submit, the file to be uploaded without a refresh. How should I do this ? It does't matter if refresh occur but i want to upload file with help of ajax.
关于我的博文的更多细节:http://blog.manki.in/2011/08/ajax-fie-upload.html
More details on my blog post: http://blog.manki.in/2011/08/ajax-fie-upload.html
这篇关于ajax文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!