Add or select media upload modal broken upon image upload

Created on 5 August 2022, over 2 years ago
Updated 24 April 2023, over 1 year ago

Problem/Motivation

Media library upload modal/widget keep breaking during the image uploading, happens randomly.

What's happening:
Step 1: In CKEditor click on the Insert from Media Library icon

Step 2: In open modal/widget, click on Select files or drop image to upload

Step 3:
Expected/normal: It takes a little bit time to upload the image and will show another modal to choose the Crop Image option etc

Happening: Quickly active modal replaced with new small modal with images gallery etc. Sometimes CKEditor also disappear itself on textarea.

Not getting any error!

This is the first time I am posting a support issue. So apologies in advance if I didn't select the right module/category etc.

💬 Support request
Status

Closed: works as designed

Version

9.5

Component
Media 

Last updated about 13 hours ago

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.

  • I am facing the same. But I couldn't reproduce it locally, only in Pantheon's staging environment. as @bsingh reported, there are differences in responses between cases that work and cases that don't. Happens randomly, and doesn't seem to have a pattern.

    With error:

    "ajax":{
                "auto_select_handler":{
                   "callback":"::updateFormCallback",
                   "wrapper":"media-library-wrapper",
                   "event":"auto_select_media_library_widget",
                   "url":"\/media-library?...",
                   "dialogType":"ajax",
                   "submit":{
                      "_triggering_element_name":"auto_select_handler"
                   }
                }
             }
    

    Without error:

    "ajax":{
        "edit-submit--M799kaIDOac":{...}
        ...
        "auto_select_handler":{...}
        ...
    }
    

    I tried a patch to add the missing libraries (in my case: file/drupal.file and dropzonejs/integration), but the problem still persists.

  • 🇺🇸United States nchristensen

    For those hosting with Pantheon:

    Pantheon has a known issue with DropzoneJS, which is used for the Media Entity DropzoneJS widget and Media Bulk Upload module.

    The module does not interact will with multiple-container environments, such as Pantheon, and is known to cause issues within the platform itself, which is what the site is currently experiencing.

    see Pantheon's documentation here: https://docs.pantheon.io/modules-known-issues#dropzonejs

  • 🇮🇳India sahilgidwani Jaipur

    Any update on this issue? I am also facing this issue in my production environment but not on Pantheon.

  • As mentioned by @nchristensen - this is related to the server/hosting environments.

    Acquia has something similar: https://docs.acquia.com/cloud-platform/manage/files/broken/

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024