Ajax表单文件上传提交 [英] AJAX form submit with file upload
本文介绍了Ajax表单文件上传提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,伙计们。我想阿贾克斯提交包含文件上传区的形式。因为我发现了JS无法处理文件上传,因此我使用这个插件 - > http://jquery.malsup.com/form/ #ajaxForm
Hey guys. I am trying to ajax submit a form that contains file upload area. As i found out JS cannot handle file uploads therefore I am using this plugin -> http://jquery.malsup.com/form/#ajaxForm
不过,提交表单后,我没有得到的 $ _ FILES
东西。有谁知道是什么原因,我怎么能解决这个问题?
However, after submitting the form, I am not getting anything in $_FILES
. Does anyone know what is the reason and how I can fix this?
我的输入字段是<输入类型=文件名称=标识ID =标志/>
是的形式是多部分数据
My input field is <input type="file" name="logo" id="logo" />
and yes the form is multipart data.
感谢。
推荐答案
看看的 http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
这篇关于Ajax表单文件上传提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文