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.
If we have several fields using plup upload, the files will go to the last one only.
As a test, create a new content type that has two image fields and that are using plup as widget. Then just upload files to the first widget and save. Go to edit age again and you will see that you actually uploaded files to the second widget.
Comment | File | Size | Author |
---|---|---|---|
#5 | plup.js.patch | 7.3 KB | justindhoffman |
#5 | plup.module.patch | 3.12 KB | justindhoffman |
#5 | plup.tar.gz | 18.6 KB | justindhoffman |
Comments
Comment #1
BrianLewisDesign CreditAttribution: BrianLewisDesign commentedsame, all uploads go to the last one plup field.
Comment #2
justindhoffman CreditAttribution: justindhoffman commentedThe issue is that plup fields are created and identified with html id not class.
Comment #3
JessicaDenkelaar CreditAttribution: JessicaDenkelaar commentedI've got the same problem. I think the solution lies in what Justin says. Has someone already have a distribution with classes instead of ID's?
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedShould work with the latest dev.
Comment #5
justindhoffman CreditAttribution: justindhoffman commentedThe posted dev (from July 3) does not work with multiple fields. It doesn't incorporate separate IDs for each field, nor separate settings for each, as has been discussed here.
I have come up with these patches from the lastest dev version. I also attached a complete working folder for those bad at patches.
I have tested them and they work for me. Hopefully someone else will find them useful.
Comment #6
JessicaDenkelaar CreditAttribution: JessicaDenkelaar commentedI tried the dev this morning and it didn't solve the issue. Just tried the patch Justin submitted and it works. Awesome! Good work! I really needed a solution for this.
Comment #7
lorisbel CreditAttribution: lorisbel commentedI tried patch #5 and it works! Thanks!
Comment #8
drupalfo CreditAttribution: drupalfo commentedIs this included in the current release or is going to be included in the current release?
Comment #8.0
drupalfo CreditAttribution: drupalfo commentedForgot some stuff