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.