Skip to content

Commit 74d6530

Browse files
authored
Update FileUploader.php
1 parent 4372ba0 commit 74d6530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uploader/FileUploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function upload(FileInterface $file)
4949

5050
do {
5151
$hash = md5(uniqid((string)mt_rand(), true));
52-
$path = preg_replace('|/+|', '/', $file->getBasePath().'/'.$hash.'.'.$file->getFile()->guessExtension());
52+
$path = preg_replace('|/+|', '/', $file->getBasePath().'/'.$hash.'.'.$file->getFile()->getExtension());
5353
} while ($this->has($path));
5454

5555
$file->setPath($path);

0 commit comments

Comments
 (0)