Skip to content
Snippets Groups Projects
Commit 109c4aa1 authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon:
Browse files

fix(import): remove query string from files url

parent 6a7d7c30
No related branches found
No related tags found
1 merge request!117fix(import): remove query string from files url
Pipeline #678 passed
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment