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.
All that's needed is to add this to the form api
'#name' => "files[{$field_name}_zip][]",
'#attributes' => array('multiple' => 'multiple'),
rewrite file_save_upload() to handle input instead of having $_FILES hard coded and only unzip zip files & let image files pass through.
Comment | File | Size | Author |
---|---|---|---|
#3 | imagefield_zip-1295334-3.patch | 11.68 KB | mikeytown2 |
#2 | imagefield_zip-1295334-2.patch | 10.77 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedhttp://drupal.org/project/transliteration
#1243974: Supporting Files uploaded as an array
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedThis does work, now I need to figure out what to do with the code... thinking new module.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedworking with CCK 3 multi-groups as well.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedThis has been committed. Will create new issues for followup
Comment #5.0
(not verified) CreditAttribution: commentedUpdated issue summary.