You are here

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

File

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

Class

FileUploaded

Namespace

EdSDK\FileUploaderServer\lib\file

Code

public function commit($dir, $autoRename) {
  $file = $this
    ->getCommitedFile($dir);
  if ($autoRename) {
    $file
      ->setFreeFileName();
  }
  $this
    ->copyTo($file);
  return $file;
}