Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 6830c71

Browse files
author
yueziii
committed
fix lost filename extension when using hash_filename
1 parent 7ce4b8d commit 6830c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StorageManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function download($url, $config)
144144
$img = new \SplFileInfo($pathRes['path']);
145145
$original = $img->getFilename();
146146
$ext = $img->getExtension();
147-
$title = config('ueditor.hash_filename') ? md5($original) . $ext : $original;
147+
$title = config('ueditor.hash_filename') ? md5($original) . '.' . $ext : $original;
148148
$filename = $this->formatPath($config['path_format'], $title);
149149
$info = [
150150
'state' => 'SUCCESS',

0 commit comments

Comments
 (0)