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

Commit

Permalink
Merge pull request #57 from yueziii/fix_filename
Browse files Browse the repository at this point in the history
Fix filename
  • Loading branch information
overtrue authored Dec 22, 2018
2 parents 7f61327 + 6830c71 commit f73f639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StorageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private function download($url, $config)
$img = new \SplFileInfo($pathRes['path']);
$original = $img->getFilename();
$ext = $img->getExtension();
$title = config('ueditor.hash_filename') ? md5($original) . $ext : $original;
$title = config('ueditor.hash_filename') ? md5($original) . '.' . $ext : $original;
$filename = $this->formatPath($config['path_format'], $title);
$info = [
'state' => 'SUCCESS',
Expand Down

0 comments on commit f73f639

Please sign in to comment.