Commit 109c4aa1 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬
Browse files

fix(import): remove query string from files url

parent 6a7d7c30
Pipeline #678 passed with stage
in 5 minutes and 1 second
......@@ -77,7 +77,7 @@ function download_file($fileUrl)
'_' .
bin2hex(random_bytes(10)) .
'.' .
pathinfo($newFileUrl, PATHINFO_EXTENSION);
pathinfo(parse_url($newFileUrl, PHP_URL_PATH), PATHINFO_EXTENSION);
$tmpFilePath = WRITEPATH . 'uploads/' . $tmpFilename;
file_put_contents($tmpFilePath, $response->getBody());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment