我写了一个简单的form表单来做文件上传,不知道为什么当我没有选择文件,只修改了一些其他信息,提交表单后,虽然数据库图片的地址没有受到影响,但是我文件上传的文件夹里面总会多出一些没有后缀的图片,不知道这是为什么,有什么解决的办法吗?
下面是代码<form id="formobj"  action="${webRoot}/sys/changeLogo" name="formobj" method="post" enctype="multipart/form-data">
<div id="div1">
<table style="width: 550px;margin:0 auto;vertical-align: middle;margin-top:3%;" class="formtable" cellspacing="1">
<tr>
<td align="right"><label class="Validform_label"> 自定义logo: </label></td>
<td class="value" style="height: 45px;">
  <input type="file" id="file" name="file" value="选择图片" >
      <a href='#' class='ace_button' style="margin-left: 2%;" onclick="scone();"> <i class=' fa fa-trash-o'></i>清空</a>
<span class="begin" id="text" style="color: red;">请选择 jpg,jpeg,bmp,png 等格式的图片!</span>
</td>
</tr>

</table>
<div class="bot" style="width: auto;height: auto;margin:11px 41%;;">
 <a id="but_sub"    onclick="change()" href="#" class="easyui-linkbutton" plain="true" icon="icon-save">提交</a>
</div>
</div>
</form>当我没有选择图片提交时,虽然数据库不受影响但是文件的保存地址却出现了这个