简体   繁体   中英

File Uploading not working in IE 10

Uploading a file is not working in IE 10: I got an ' Error Invalid argument ' error in the console. It is working in Mozila and Chrome.

$frm.css({display: "inline-block", float: 'left'});
alert('two start');
$frm[0].action = '../rest/file/upload';
alert('three start');
alert('fore start');
$frm[0].enctype='multipart/formdata'; // Error Line

Try multipart/form-data instead of multipart/formdata :

            $frm.css({display: "inline-block", float: 'left'});
            alert('two start');
            $frm[0].action = '../rest/file/upload';
            alert('three start');
            alert('fore start');
            $frm[0].enctype='multipart/form-data';

对于enctype的值,它不是multipart/form-data而不是multipart/formdata吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM