Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
spatie
/
laravel-medialibrary
/
src
/
Downloaders
Location:
/home/zoteqbgb/public_html/vendor/spatie/laravel-medialibrary/src/Downloaders
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: DefaultDownloader.php
<?php namespace Spatie\MediaLibrary\Downloaders; use Spatie\MediaLibrary\MediaCollections\Exceptions\UnreachableUrl; class DefaultDownloader implements Downloader { public function getTempFile(string $url): string { $context = stream_context_create([ "http" => [ "header" => "User-Agent: Spatie MediaLibrary", ], ]); if (! $stream = @fopen($url, 'r', false, $context)) { throw UnreachableUrl::create($url); } $temporaryFile = tempnam(sys_get_temp_dir(), 'media-library'); file_put_contents($temporaryFile, $stream); fclose($stream); return $temporaryFile; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
DefaultDownloader.php
696 bytes
0644
2023-11-03 17:09
âï¸
ðï¸
Rename
Downloader.php
130 bytes
0644
2023-11-03 17:09
âï¸
ðï¸
Rename
Chang
Apply