We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ed28f commit 0d13a3cCopy full SHA for 0d13a3c
src/Client.php
@@ -565,7 +565,10 @@ public function upload($path)
565
'base_uri' => $this->getApiRoot()
566
]);
567
$fileinfo = pathinfo($path);
568
- $filename = str_replace('.', '_', $fileinfo['filename']) . '.' . $fileinfo['extension'];
+ $filename = str_replace('.', '_', $fileinfo['filename']);
569
+ if (isset($fileinfo['extension'])) {
570
+ $filename .= '.' . $fileinfo['extension'];
571
+ }
572
$options = [
573
'multipart' => [
574
[
0 commit comments