我正在尝试实现 dojox.form.Uploader 以上传多个文件:这是我的做法:
<script type="text/javascript">
dojo.require("dojo.parser");
dojo.require("dijit.form.Button");
dojo.require("dojox.form.Uploader");
dojo.require("dojox.form.uploader.plugins.IFrame");
</script>
<body>
<div data-dojo-type="dijit.form.Form" id="myMultipleForm1"
data-dojo-id="myMultipleForm1" action="documentUpload.do"
method="post" encType="multipart/form-data">
<div data-dojo-type="dojox.form.Uploader" id="multipleUploader1"
multiple="true"
data-dojo-props="name:'uploadedfile[]',
showInput:'before',isDebug:true">Browse
</div>
<button type="submit" data-dojo-type="dijit.form.Button"
id="submitMultipe1Button">Submit</button>
</div>
</body>
它在 FileFox 和 Chrome 上运行良好,浏览时我可以选择多个文件,但在 IE8,9 上只能选择一个。
谁能帮我?