Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 无法上载文件IE9-Blueimp_Jquery_Angularjs_Internet Explorer_File Upload_Blueimp - Fatal编程技术网

Jquery 无法上载文件IE9-Blueimp

Jquery 无法上载文件IE9-Blueimp,jquery,angularjs,internet-explorer,file-upload,blueimp,Jquery,Angularjs,Internet Explorer,File Upload,Blueimp,我有以下逻辑来初始化blueimp上传程序 el.fileupload({ url: '/media', formData: formData, progressInterval: 300, forceIframeTransport : true, //!window.FormData, temp hack

我有以下逻辑来初始化blueimp上传程序

                el.fileupload({
                    url: '/media',
                    formData: formData,
                    progressInterval: 300,
                    forceIframeTransport : true, //!window.FormData, temp hack to replicate IE functionality on chrome
                    uploadTemplateId: null,
                    downloadTemplateId: null,
                    singleFileUploads: !scope.config.multiple,
                    change: change,
                    progress: progress,
                    beforeSend: beforeSend,
                    add: add
                });

                el.find('.file-uploader').bind('change', function (e) {
                    el.fileupload('add', {
                        fileInput: $(this) //for ie iframe upload
                    });
                });
这就是我的HTML(
el
在上面的代码中)的样子:

<form id="fileupload">
    <div class="row fileupload-buttonbar">
        <div>
            <span class="btn btn-success fileinput-button">
                    <i class="glyphicon glyphicon-plus"></i>
                    <span>Add files...</span>
                    <input type="file" name="file" ng-disabled="disabled" class="file-uploader">
            </span>
            <button type="button" class="btn btn-primary start" ng-if="!config.autoUpload" data-ng-click="submit()">
                <i class="glyphicon glyphicon-upload"></i>
                <span>Start upload</span>
            </button>
            <button type="button" class="btn btn-warning cancel" data-ng-click="cancel()">
                <i class="glyphicon glyphicon-ban-circle"></i>
                <span>Cancel upload</span>
            </button>
        </div>

    </div>
</form>
上面的文件名为空,内容类型为
application/octet stream
,而不是
image/jpeg

感谢您的帮助

------WebKitFormBoundarypfHR2vjNiSu5Y9G8
Content-Disposition: form-data; name="jsonString"

{"name":"1439488201502"}
------WebKitFormBoundarypfHR2vjNiSu5Y9G8
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream


------WebKitFormBoundarypfHR2vjNiSu5Y9G8--