input file中要有name属性并有随意值(无用,但是必须有name属性)否则表单提交图片并不能成功
<form action="../../../file/posPrintUpload.do" id="uploadOneForm" method="post" <span style="color:#ff6666;">enctype="multipart/form-data" οnsubmit="return saveReport()"</span>>
上传:
<input id="uploadInpFile" type="file" name="posPrintFiles" style="width:270px;position:absolute;top:-2px;left:0;cursor:pointer;opacity:0;filter:Alpha(opacity=0);"/>
<input id="uploadInpFileName" type="text" style="display:inline-block;width:200px;" readonly/>
</form>
<form action="../../../file/loadDefaultPosPrintTemplate.do" id="tempDownloadForm" method="post"></form>