Browse Source

自定义文件名,会导致无扩展名

修复了该问题
master
canon4ever 9 years ago
committed by Yuri
parent
commit
4e30e39b9b
  1. 2
      examples/php/editormd.uploader.class.php

2
examples/php/editormd.uploader.class.php

@ -252,7 +252,7 @@
private function setSeveName() private function setSeveName()
{ {
$this->saveName = $this->randomFileName();
$this->saveName = $this->randomFileName().".".$this->fileExt;
if($this->saveName == '') //如果没生成随机文件名,就保留原文件名 if($this->saveName == '') //如果没生成随机文件名,就保留原文件名
{ {

Loading…
Cancel
Save