There was an error while loading. Please reload this page.
1 parent 1c1aef4 commit efd3fd4Copy full SHA for efd3fd4
src/Upload/UploadedFile.php
@@ -81,6 +81,14 @@ public function __construct(
81
->setClientFilename($clientFilename)
82
->setClientMediaType($clientMediaType);
83
$this->isOk() && $this->setFile($tmpFile);
84
+ parent::__construct($tmpFile);
85
+ }
86
+
87
+ public function getExtension(): ?string
88
+ {
89
+ $clientName = $this->getClientFilename();
90
+ $segments = explode('.', $clientName);
91
+ return end($segments) ?? null;
92
}
93
94
/**
0 commit comments