CKeditor Upload Image to stored status Temporary

Created on 24 March 2023, almost 2 years ago
Updated 15 September 2024, 4 months ago

I am using the drupal 9.4.8 version in my application . While create a page using ckeditor, When inserting a image in the CKeditor, we facing image was stored in temporary status , it cause temporary image delete after 6 hours , i resolved that as patch for image upload as permanent in status updated . I think it is useful another application you face same issue .

🐛 Bug report
Status

Closed: cannot reproduce

Version

11.0 🔥

Component

ckeditor.module

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @suresh_m
  • Status changed to Postponed: needs info almost 2 years ago
  • Thank you for posting a patch. For a bug fix in core we need very clear steps to reproduce please.

  • Here attached the screen shot for reproduced above issue .
    Step 1 . Choose the image insert via Ckeditor refer step1.jpg
    Step 2. After save the data ,check in file show the file status as Temporary refer step2.jpg
    Step 3. After apply the patch it should show the file status as Permanent refer step3.jpg

  • By "steps to reproduce" what I mean are directions for setting up Drupal in such a way that the bug is exhibited. As far as I know it is uncommon for what you reported to occur.

  • Also: Drupal 9.5 is the general bug fix target branch because there will only be security bug fix releases of 9.4.

  • 🇫🇷France NuWans

    Same problems with drupal 10.0.9 on a custom form /WYSIWYG field, But the patch is not working

  • 🇨🇭Switzerland jeremie_alvin

    @suresh_m it's actually normal to have a 'temporary' status on an uploaded image.
    Drupal stores inline images as temporary at first, but when you save the entity, Drupal triggers a status change to make it permanent.
    Can you explain a bit more the steps involved in reproducing your error and whether the image remains temporary after the entity has been saved?

  • 🇮🇳India bhuvaneshwar

    The same problems with Drupal 10.1.4 on a custom form, Block's /WYSIWYG field, And the patch is not working either after saving the entity.

    When I use the code as per this article is it working fine https://drupal8.ovh/en/tutoriels/437/ckeditor-inline-image-files-usage-c....

  • Status changed to Closed: cannot reproduce 4 months ago
  • 🇦🇺Australia pameeela

    This definitely does not occur in default CKE in core. The image is temporary when first uploaded, and becomes permanent when you save the node. If this is not working on a custom form, you are probably missing a step in your custom code.

  • 🇫🇷France dakwamine

    Tested on 10.3.7.

    I confirm this does not happen with ckeditor5 from Drupal's core.

    It happens with the contrib module ckeditor, the one created temporarily for the migration between cke4 and cke5.

    My advice is then to enable the core ckeditor5 module, then switch all your text formats using the old editor to CkEditor5.

    If you have errors when saving the text format, you may need to update your contrib modules which provide plugins for ckeditor.

Production build 0.71.5 2024