Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated input stream file writing logic from REST and JSON API is deprecated and replaced with a service #902

Open
github-actions bot opened this issue Oct 20, 2024 · 0 comments
Labels

Comments

@github-actions
Copy link

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

Introduced in branch/version: 10.3.x / 10.3.0

Duplicated input stream file writing logic from REST and JSON API is deprecated and replaced with a service.

You can now use \Drupal\file\Upload\InputStreamFileWriter::writeStreamToFile() to write the input stream to a temporary file and use the service file.input_stream_file_writer

\Drupal\file\Plugin\rest\resource\FileUploadResource::BYTES_TO_READ and \Drupal\jsonapi\Controller\TemporaryJsonapiFileFieldUploader::BYTES_TO_READ are deprecated and replaced with \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants