Skip to content

Commit f4de4ba

Browse files
committed
Update thumbnail filename in CreateFile action to use original name
1 parent 5266c68 commit f4de4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/CreateFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected function uploadThumbnail(UploadedFile $file, array $options = [])
131131
$file = $this->handle(
132132
new UploadedFile(
133133
storage_path('app/public/pharaonic-thumbs/' . $name),
134-
$name,
134+
$file->getClientOriginalName() . '-thumbnail',
135135
$thumbnail->mime()
136136
),
137137
$options

0 commit comments

Comments
 (0)