WordPress\AiClientDependencies\Psr\Http\Message

UploadedFileInterface::getStream │ public │ WP 1.0

Retrieve a stream representing the uploaded file.

This method MUST return a StreamInterface instance, representing the uploaded file. The purpose of this method is to allow utilizing native PHP stream functionality to manipulate the file upload, such as stream_copy_to_stream() (though the result will need to be decorated in a native PHP stream wrapper to work with such functions).

If the moveTo() method has been called previously, this method MUST raise an exception.

Метод класса: UploadedFileInterface{}

Хуков нет.

Возвращает

StreamInterface. Stream representation of the uploaded file.

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

$UploadedFileInterface = new UploadedFileInterface();
$UploadedFileInterface->getStream(): StreamInterface;

Код UploadedFileInterface::getStream() WP 7.1.2

public function getStream(): StreamInterface;