上传头像的时候报错了
java.lang.IllegalArgumentException: Files' name is invalid or does not exist (1205).问题补充:
File myFile = mySmartUpload.getFiles().getFile(0);这句报错!!
页面的部分代码如下:
<form name="form1" method="post" id="form1" action="${ctx}/MemberAction/saveMemberInformation.do" onSubmit="return Validator.Validate(this)">
<input type="hidden" name="from" value="${param.from }" />
<!-- <input type="hidden" name="member.id" value="${member.id}" />-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" align="right">头 像:</td>
<td width="64%"><img src="<%=defaultPic%>" width="70" height="70" />
<input type="file" name="phone" id="phone" size="10" title="选择照片" />
<input type="button" name="btnUpload" value="上 传" id="btnUpload" onclick="upload()"/></td>
<td width="21%"> </td>
</tr>
求求各位大哥大姐啊,救命啊.........
是参数错误,你传进去的参数无效,或者不存在
你再仔细比较一下你传的参数和你需要的参数是不是同一类型,或者其他什么问题追问
我自己做了一个Demo单独运行是正确的,一加到项目中就不对了...
本回答被提问者采纳