Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We would like to make changes to the media entities *before* they are shown to the user (like filling out the name field for example). The problem is that the CREATE event is only fired when submitting the filled out forms which I think is actually a bit inconsistent with the other widget but we can't change that now as people might rely on that behavior.
Proposed resolution
Add a new event, trigger that in submitEdit()
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | dropzonejs-ief-precreate-2959784-4.patch | 3.02 KB | Berdir |
#3 | dropzonejs-ief-precreate-2959784-3-interdiff.txt | 1.17 KB | Berdir |
#3 | dropzonejs-ief-precreate-2959784-3.patch | 3.01 KB | Berdir |
#2 | dropzonejs-ief-precreate-2959784-2.patch | 2.21 KB | Berdir |
Comments
Comment #2
BerdirComment #3
BerdirSwitching media types during upload is a gift that just keeps on giving. Now the submit() can fail because the source field might be different for the different media entities.
Comment #4
BerdirRerolled.
Comment #7
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedCommitted, thanks!