FileUploadResource::BYTES_TO_READ

Same name in other branches
  1. 9 core/modules/file/src/Plugin/rest/resource/FileUploadResource.php \Drupal\file\Plugin\rest\resource\FileUploadResource::BYTES_TO_READ
  2. 8.9.x core/modules/file/src/Plugin/rest/resource/FileUploadResource.php \Drupal\file\Plugin\rest\resource\FileUploadResource::BYTES_TO_READ

The amount of bytes to read in each iteration when streaming file data.

Deprecated

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ instead.

See also

https://www.drupal.org/node/3380607

File

core/modules/file/src/Plugin/rest/resource/FileUploadResource.php, line 99

Class

FileUploadResource
File upload resource.

Namespace

Drupal\file\Plugin\rest\resource

Code

const BYTES_TO_READ = 8192;

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