Closed omarherri closed 5 months ago
In the DefaultDownloader you should update the part:
DefaultDownloader
$context = stream_context_create([ 'ssl' => [ 'verify_peer' => config('media-library.ssl'), 'verify_peer_name' => config('media-library.ssl'), ], 'http' => [ 'header' => 'User-Agent: Spatie MediaLibrary', ], ]);
By the correct config options:
$context = stream_context_create([ 'ssl' => [ 'verify_peer' => config('media-library.media_downloader_ssl'), 'verify_peer_name' => config('media-library.media_downloader_ssl'), ], 'http' => [ 'header' => 'User-Agent: Spatie MediaLibrary', ], ]);
This ensure to use the latest config file.
I made a pull request for that #3634
This has been fixed in the latest version.
In the
DefaultDownloader
you should update the part:By the correct config options:
This ensure to use the latest config file.