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
No related merge requests found
...@@ -77,7 +77,7 @@ function download_file($fileUrl) ...@@ -77,7 +77,7 @@ function download_file($fileUrl)
'_' . '_' .
bin2hex(random_bytes(10)) . bin2hex(random_bytes(10)) .
'.' . '.' .
pathinfo($newFileUrl, PATHINFO_EXTENSION); pathinfo(parse_url($newFileUrl, PHP_URL_PATH), PATHINFO_EXTENSION);
$tmpFilePath = WRITEPATH . 'uploads/' . $tmpFilename; $tmpFilePath = WRITEPATH . 'uploads/' . $tmpFilename;
file_put_contents($tmpFilePath, $response->getBody()); file_put_contents($tmpFilePath, $response->getBody());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment