- Issue created by @steveworley
- @steveworley opened merge request.
- 🇦🇺Australia steveworley
I've created a MR to resolve this; https://git.drupalcode.org/project/clamav/-/merge_requests/7. The CKEditor plugin doesn't pass through the tmp path in the file object but we can access the same values from the request object.
This appears to be a core issue, and should probably be patched in there.
Also:
+ if (!is_resource($file_handler)) { + // @see Drupal\ckeditor5\Controller\CKEditor5ImageController + $upload = \Drupal::request()->files->get('upload'); + $file_handler = fopen($upload->getRealPath(), 'r'); + } +
Seems like it'd throw an exception if
$upload
doesn't resolve to an object.- Status changed to Closed: outdated
9 months ago 1:39pm 16 February 2024 A MR and patch for core targetting D10.1 is available here 📌 Make CKEditor5ImageController reuse FileUploadHandler Active .