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.
Hi, I'd like to bulk upload files into a specific folder. At this moment, all files are upload ed into /sites/default/files folder, which makes the folder really untidy when you have to deal with lots of files. To better organize files, I think that could be useful to introduce the option of select a folder where the files must be copied.
To address this issue, I developed a patch. Please test my patch and tell me what do you think about (it is my first contribution).
Best regards.
Loris.
Comment | File | Size | Author |
---|---|---|---|
#7 | patchMediaToDirectory.patch | 3.49 KB | lorisbel |
Comments
Comment #2
lorisbel CreditAttribution: lorisbel commentedComment #3
lorisbel CreditAttribution: lorisbel as a volunteer commentedComment #4
joseph.olstadThanks for the patch, this is functionality that is helpful.
parser says corrupt patch at line 84.
Can you try cloning the 7.x-2.x branch of media and then make the patch from that?
Thanks for your time.
Comment #5
joseph.olstadto clone from 7.x-2.x branch do this:
Comment #6
lorisbel CreditAttribution: lorisbel as a volunteer commentedComment #7
lorisbel CreditAttribution: lorisbel as a volunteer commentedComment #8
joseph.olstadNice work thanks for fixing the patch.
Comment #11
joseph.olstadDid some minor cleanup, I cleaned up indenting (two spaces per indent, not 6, not 4), whitespace, and fixed a couple code standards compliance issues with the concatenation space between the dot.
else should also be
Thanks.