We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4372ba0 commit 74d6530Copy full SHA for 74d6530
src/Uploader/FileUploader.php
@@ -49,7 +49,7 @@ public function upload(FileInterface $file)
49
50
do {
51
$hash = md5(uniqid((string)mt_rand(), true));
52
- $path = preg_replace('|/+|', '/', $file->getBasePath().'/'.$hash.'.'.$file->getFile()->guessExtension());
+ $path = preg_replace('|/+|', '/', $file->getBasePath().'/'.$hash.'.'.$file->getFile()->getExtension());
53
} while ($this->has($path));
54
55
$file->setPath($path);
0 commit comments