1、打开/include/dialog/select_soft_post.php
找到大约40行:
<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $cuserLogin->getUserID().'_'.MyDate('dHis',$nowtme);
</span>
修改为:
<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $uploadfile_name;
</span>
再找到约47行:
<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $filename.'.'.$fs[count($fs)-1];
</span>
修改为:
<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $filename.'.'.$fs[count($fs)-1];
</span>
完成以上二步,以后上传图片,就可以实现自动重命名了。