Skip to content

Commit

Permalink
自定义文件名,会导致无扩展名
Browse files Browse the repository at this point in the history
修复了该问题
  • Loading branch information
canon4ever committed Mar 23, 2016
1 parent af08536 commit 98d5467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/php/editormd.uploader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function randomFileName()

private function setSeveName()
{
$this->saveName = $this->randomFileName();
$this->saveName = $this->randomFileName().".".$this->fileExt;

if($this->saveName == '') //如果没生成随机文件名,就保留原文件名
{
Expand Down

0 comments on commit 98d5467

Please sign in to comment.