WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Psr7

UploadedFile::moveTo() public Yoast 1.0

{@inheritdoc}

{} Это метод класса: UploadedFile{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$UploadedFile = new UploadedFile();
$UploadedFile->moveTo( $targetPath );
$targetPath(строка) (обязательный)
Path to which to move the uploaded file.

Заметки

Код UploadedFile::moveTo() Yoast 15.6.2

<?php
public function moveTo($targetPath)
{
    $this->validateActive();
    if (\false === $this->isStringNotEmpty($targetPath)) {
        throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');
    }
    if ($this->file) {
        $this->moved = \php_sapi_name() == 'cli' ? \rename($this->file, $targetPath) : \move_uploaded_file($this->file, $targetPath);
    } else {
        copy_to_stream($this->getStream(), new \YoastSEO_Vendor\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w'));
        $this->moved = \true;
    }
    if (\false === $this->moved) {
        throw new \RuntimeException(\sprintf('Uploaded file could not be moved to %s', $targetPath));
    }
}