You are here

public function FileUploaded::rehost in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

File

vendor/edsdk/file-uploader-server-php/src/lib/file/FileUploaded.php, line 91

Class

FileUploaded

Namespace

EdSDK\FileUploaderServer\lib\file

Code

public function rehost($url) {
  $dUrl = URLDownloader::download($url, $this
    ->getBaseDir() . "/" . $this
    ->getDir());
  $this
    ->setName($dUrl->fileName);
}