使用jQueryAjax插件上传图像在IE中不起作用

使用jQueryAjax插件上传图像在IE中不起作用,jquery,ajax,file-upload,jquery-forms-plugin,Jquery,Ajax,File Upload,Jquery Forms Plugin,我正在使用 我有这个密码 $(document).ready(function() { jQuery("input[name=file]").change(function(e){ if( browserType == "MSIE" ){ jQuery("#start_campaign").ajaxForm({ target

我正在使用

我有这个密码

$(document).ready(function() { 
        jQuery("input[name=file]").change(function(e){
            if( browserType == "MSIE" ){
                jQuery("#start_campaign").ajaxForm({
                    target: '.imgPreview',  
                    url: host+"/forms/campaign-image-upload.php?action=ajaxUploadImage",
                    beforeSend: function() {
                        console.log(2);
                    },
                    success: function(responseText,statusText,xhr,$form) {
                        alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
                        '\n\nThe output div should have already been updated with the responseText.');
                    }
                }).submit();
            } else {
                readURL(this);
            }   
        });
    });
它在
beforeSend
函数上运行,但在此之后,它会出现此类错误:

SCRIPT3: Member not found.
 
jquery.form.js, line 349 character 5
LOG: [jquery.form] state = complete 
这是第349行:

这个代码有什么问题?我一直在网上搜索,没有找到答案

您的帮助将得到极大的感谢和回报


谢谢

我通过查看以下url来回答这个问题:

似乎错误在于页面上的多个提交按钮具有相同的
name=“submit”
确保您只有一个提交按钮


天哪,这救了我一天!:D

同样的错误也出现在我的项目中,因为我触发了a标记到文件上载控件

如果您已将文件上载控件触发到其他元素,如div或a等,如果是,请删除文件上载控件的触发器,并在IE中简单显示文件上载控件,然后上载图像。它将完美工作

请试试这个

对不起,我英语不好