function InputStreamFileWriterInterface::writeStreamToFile

Same name in other branches
  1. 11.x core/modules/file/src/Upload/InputStreamFileWriterInterface.php \Drupal\file\Upload\InputStreamFileWriterInterface::writeStreamToFile()

Write the input stream to a temporary file.

Parameters

string $stream: (optional) The input stream.

int $bytesToRead: (optional) The length of bytes to read in each iteration.

Return value

string The temporary file path.

File

core/modules/file/src/Upload/InputStreamFileWriterInterface.php, line 32

Class

InputStreamFileWriterInterface
Uploads files from a stream.

Namespace

Drupal\file\Upload

Code

public function writeStreamToFile(string $stream = self::DEFAULT_STREAM, int $bytesToRead = self::DEFAULT_BYTES_TO_READ) : string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.