mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(import): remove query string from files url
This commit is contained in:
parent
6a7d7c3021
commit
109c4aa1af
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user