You are here

public static function URLDownloader::download in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Downlaods URL to directory.

1 call to URLDownloader::download()
FileUploaded::rehost in src/Flmngr/FileUploaderServer/lib/file/FileUploaded.php
Rehosts a file (downloads from some URL).

File

src/Flmngr/FileUploaderServer/lib/file/URLDownloader.php, line 28

Class

URLDownloader
URL downloader.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public static function download($url, $dir) {
  $result = URLDownloader::downloadUrl($url, $dir);
  return $result;
}