- 🇫🇷France hassebasse
I'm on D10.1
I had the same problem, and I figured out it was connected to activating the Blazy filter in the text editor settings. So upload impossible with the Blazy filter activated in the text editor settings, while upload possible if desactivating the Blazy filter in the text editor settings.
Maybe it is rather a Blazy issue?
Symfony\Component\HttpKernel\Exception\HttpException: Temporary file could not be moved to file location in Drupal\ckeditor5\Controller\CKEditor5ImageController->upload() (line 188 of /home/my-domain/public_html/drupal/web/core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php).
- 🇮🇳India ramprassad
I'm also facing this issue in drupal 10.1.3 with ckeditor 5. This patch works fine, so created a patch so it can be applied.
- 🇲🇽Mexico edgar.aguilar Tabasco
@ramprassad! The #5 patch is working for me! thanks!!
- 🇧🇷Brazil larruda
Had to port the patch to work with 10.2.0.
Haven't fully tested yet, but apparently fixes the problem.I believe a new issue must be raised in core, otherwise this patch will not be committed.
- Status changed to Needs review
11 months ago 8:23pm 25 December 2023 - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - 🇧🇷Brazil larruda
Just raised an issue in core referencing this one
https://www.drupal.org/project/drupal/issues/3410827 🐛 Can't upload files Active - 🇩🇪Germany Franz-m
In my case - D10.2.2 - I did not succeed. Hopefully this log can help ...
Gathering patches for dependencies. This might take a minute. - Installing drupal/core-recommended (10.2.2) - Applying patches for drupal/core-recommended 3328277-ckeditor5-upload-image-2.patch (Cke5-Image-Upload) In RemoteFilesystem.php line 108: [TypeError] Composer\Util\RemoteFilesystem::copy(): Argument #1 ($originUrl) must be of type string, null given,
- 🇮🇳India Sandeep_k New Delhi
@larruda, I've tested this patch- 3328277-ckeditor5-upload-image-2.patch on Drupal version- 9.5, I was able to reproduce this issue but while applying the patch I was getting an error & The patch didn't get applied successfully for me. (Error attached)
- 🇫🇷France frondeau Nantes, FRANCE
Hello,
On Drupal 9.5.11,
I was looking for a patch to solve the CKEDITOR5 image upload.
I've applied the first patch, https://www.drupal.org/files/issues/2023-09-20/3328277-ckeditor5-upload-image.patch → ,- with my user profile, administration language, on a choosen language
FRENCH
: the patch won't work. - with my user profile, administration language, on a choosen language
NO PREFERENCE
: it is working, as it is without this patch.
So this patch may fix a bug but not the concerned one (CKEDITOR5 Images upload).
Sorry to fix this conversation but I think it is important to add this detail. - with my user profile, administration language, on a choosen language
- last update
10 months ago Patch Failed to Apply - last update
10 months ago Patch Failed to Apply - last update
10 months ago Patch Failed to Apply - 🇳🇱Netherlands Ronald van Belzen
I wonder whether this issue will also solve the scenario when copy-and-pasting multiple images into the editor. This results in only 1 image being saved, while the other images encounter the error:
Symfony\Component\HttpKernel\Exception\HttpException: File "public://inline-images/image.png" is already locked for writing. in Drupal\ckeditor5\Controller\CKEditor5ImageController->upload() (line 167 of /var/www/html/web/core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php).
Not been able to check the patch, but maybe this is of interest.
- 🇨🇭Switzerland stefanos.petrakis@gmail.com Biel, Switzerland
Currently from D 10.3 on (and D 11) this should be fixed according to 🐛 [PP-1] CKEditor file upload sets file URI prior to validation, causing validators to be unable to find the file. Postponed
Note: According to this comment 🐛 [PP-1] CKEditor file upload sets file URI prior to validation, causing validators to be unable to find the file. Postponed :
Patches for 10.1 and 10.2 are available are issue forks within the main issue.
Although the 11.x commit applies cleanly against 10.2, it's not compatible with the API changes introduced in #3375447: Create an UploadedFile validator and deprecate error checking methods on UploadedFileInterface as stated in #49, and the 10.2 patch (if applied) should be subsequently removed upon updating to 10.3.
Going to move this to "Outdated" since the reported problem seems to be fixed in core.
- Status changed to Closed: outdated
3 months ago 9:29am 30 August 2024