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 0d13a3c commit 738844eCopy full SHA for 738844e
src/Client.php
@@ -565,7 +565,7 @@ public function upload($path)
565
'base_uri' => $this->getApiRoot()
566
]);
567
$fileinfo = pathinfo($path);
568
- $filename = str_replace('.', '_', $fileinfo['filename']);
+ $filename = preg_replace('/\W+/', '_', $fileinfo['filename']);
569
if (isset($fileinfo['extension'])) {
570
$filename .= '.' . $fileinfo['extension'];
571
}
0 commit comments