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.
Let the user compress and download all files that are uploaded in a node when they visit '/download_node/node/{nid}' without worrying about file field names.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2988346-6.patch | 3.33 KB | manish-31 |
#4 | 2988346-4.patch | 3.79 KB | manish-31 |
#2 | 2988346-2.patch | 2.07 KB | manish-31 |
Comments
Comment #2
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commentedThis patch adds the required feature:
Create a content type with any number of file fields with whatever machine name you want. Now visit '/download_node/node/{nid}' you will be able to download all the files present in the node.
Comment #3
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commentedComment #4
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commentedPatch #4 adds the required feature:
Create a content type with any number of file fields with whatever machine name you want. Now visit '/download_all_files/node/{nid}' you will be able to download all the files present in the node with ID {nid}.
The feature to download only selected files(by providing their field names) will be added in this issue
Comment #5
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedI tried to apply the patch but patch is getting failed.
Comment #6
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commentedThanks @Dinesh18 for applying the patch.
Please apply patch #6 and review it.
Read the comment #4 to use it properly.
Comment #7
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedStill doesn't work. Please check coding standards as well.
Comment #8
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedComment #9
AkashKumar07 CreditAttribution: AkashKumar07 at OpenSense Labs commentedComment #11
gaurav.kapoor CreditAttribution: gaurav.kapoor commented