How to retrieve files from url when they have whitespace into filename?
I managed to solve the issue by adding this command:

$image= str_replace(' ', '%20', $image);


I juste replaced all whitespaces with html whitespace characters..