WordPress\AiClientDependencies\Psr\Http\Message
UploadedFileInterface::getStream
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.
Method of the class: UploadedFileInterface{}
No Hooks.
Returns
StreamInterface. Stream representation of the uploaded file.
Usage
$UploadedFileInterface = new UploadedFileInterface(); $UploadedFileInterface->getStream(): StreamInterface;
UploadedFileInterface::getStream() UploadedFileInterface::getStream code WP 7.0
public function getStream(): StreamInterface;