Issue #3415706 by kim.pepper, smustgrave, longwave: Deprecate unused constant BYTES_TO_READ in FileUploadResource and TemporaryJsonapiFileFieldUploader
parent
b8a5017e19
commit
d0677640d2
|
@ -79,6 +79,12 @@ class FileUploadResource extends ResourceBase {
|
|||
* The amount of bytes to read in each iteration when streaming file data.
|
||||
*
|
||||
* @var int
|
||||
*
|
||||
* @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 https://www.drupal.org/node/3380607
|
||||
*/
|
||||
const BYTES_TO_READ = 8192;
|
||||
|
||||
|
|
|
@ -63,6 +63,12 @@ class TemporaryJsonapiFileFieldUploader {
|
|||
* The amount of bytes to read in each iteration when streaming file data.
|
||||
*
|
||||
* @var int
|
||||
*
|
||||
* @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 https://www.drupal.org/node/3380607
|
||||
*/
|
||||
const BYTES_TO_READ = 8192;
|
||||
|
||||
|
|
Loading…
Reference in New Issue