Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
自定义文件名,会导致无扩展名
Browse files Browse the repository at this point in the history
修复了该问题
  • Loading branch information
canon4ever authored and astak committed Apr 1, 2018
1 parent e7fc004 commit 4e30e39
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 4e30e39

Please sign in to comment.