Browse Source

Merge pull request #228 from canon4ever/patch-1

自定义文件名,会导致无扩展名
master
pandao 9 years ago
parent
commit
5b3ceb87b3
  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