Don't rely on temporary:// (Files do not upload when dropped)

Created on 15 October 2017, over 7 years ago
Updated 20 February 2023, over 2 years ago

Problem/Motivation

Versions used
Drupal 8.4.0 (incl. core media module)
dropzonejs module 8.x-2.0-alpha1
dopzone.js library 5.2.0

Using the entity browser widget "Media Entity DropzoneJS" uploading of files by dropping them into the dropzone does not work. The dropzone appears and I can upload files by clicking the select button, but the "drop"-feature is not working.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany extect Germany

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.

  • πŸ‡¨πŸ‡¦Canada Charlie ChX Negyesi 🍁Canada

    We confirm this issue on Amazee, changing $settings['file_temp_path'] to a directory shared between pods (virtual machines) solved it.

  • πŸ‡¨πŸ‡¦Canada deviantintegral

    I think there's a related bug as well for servers hosting multiple distinct Drupal sites, such as in multisite. In our case, we were running automated tests in parallel and file uploads were failing around 30% of the time for files with the same name. Adding a random string to each uploaded file like mktemp does would solve this, but we just moved to using the private files directory.

  • πŸ‡ΊπŸ‡ΈUnited States khaldoon_masud

    #22 worked for me on Pantheon, but I believe we should introduce a setting to create a subdirectory within the designated schema. For example, saving temporary files in the private directory can lead to overcrowding with unsuccessful bulk uploads. We need a solution to manage and clean up those files, which can be achieved by running a cron job.

  • πŸ‡ΊπŸ‡ΈUnited States uri_frazier Portland, Oregon

    #22 πŸ› Don't rely on temporary:// (Files do not upload when dropped) Needs work Worked for me as well.

    The issue I had was that although the GUI would show all the images were uploaded (green checkmarks across the thumbnails), on the next part of the pop-up where you can add the alt text and other details, only 50% or less of the images would show up to be saved.

    So when uploading 4 images at a time, only 1 or 2 images would show up for editing prior to saving. And only those would actually be saved.

    This bug was in a Pantheon environment, and only replicable in the stage/test and production/live environments. The multidev and dev environments worked fine (I assume because they don't get any "balance loading"/don't use multiple containers).

    Pantheon currently lists DropzoneJS as a problem (thanks shopkinsbit β†’ for mentioning this in #19 πŸ› Don't rely on temporary:// (Files do not upload when dropped) Needs work )

    The widget relies on a temporary path that is not shared between application containers.

Production build 0.71.5 2024