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
Putting a lot of files into the same directory is bad for file system performance.
Proposed resolution
Support tokens in the upload_location field, just like a file field.
Also, I think it makes sense to adopt the file field default, which uses the year and month as default location.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#6 | dropzonejs-token-upload-location-2661402-6.patch | 4.17 KB | tduong |
#6 | interdiff-2661402-4-6.txt | 1.28 KB | tduong |
#2 | dropzonejs-token-upload-location-2661402-1.patch | 1.75 KB | Berdir |
Comments
Comment #2
BerdirComment #3
Primsi CreditAttribution: Primsi at Examiner.com for Examiner.com commentedInject the token service?
Otherwise looks fine.
Comment #4
tduong CreditAttribution: tduong at MD Systems GmbH commentedAdded token service injection.
Comment #5
BerdirYou don't need this. You need to add it to dropzonejs.services.yml instead.
Comment #6
tduong CreditAttribution: tduong at MD Systems GmbH commentedDone.
Comment #7
BerdirLooks good to me now but haven't tested.
Comment #9
Primsi CreditAttribution: Primsi at Examiner.com for Examiner.com commentedTested it, looks fine. Thanks all.