Skip to content

Commit 98d5467

Browse files
author
canon4ever
committed
自定义文件名,会导致无扩展名
修复了该问题
1 parent af08536 commit 98d5467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/php/editormd.uploader.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function randomFileName()
252252

253253
private function setSeveName()
254254
{
255-
$this->saveName = $this->randomFileName();
255+
$this->saveName = $this->randomFileName().".".$this->fileExt;
256256

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

0 commit comments

Comments
 (0)