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.
Is there a recommended way to implement a bulk upload feature for media images?
I would like to be able to upload multiple images at once on the 'media/add/image' page, but can't find any existing solution for this for Drupal 8.
For Drupal 7 there was the Bulk Media Upload module https://www.drupal.org/project/bulk_media_upload, which seems to cover this issue, but nothing yet for Drupal 8?
Is this something that could possibly be integrated into the Media Entity Image module?
Comment | File | Size | Author |
---|---|---|---|
#6 | media-bundle-widget.jpg | 90.62 KB | heyehren |
#6 | add-media-2.jpg | 56.32 KB | heyehren |
#6 | add-media.jpg | 58.14 KB | heyehren |
Comments
Comment #2
heyehren CreditAttribution: heyehren commentedOk, now the bulk upload field appeared. It must have been the cache...
Comment #3
handkerchiefComment #4
handkerchiefHmm... i see nothing. Where can I find the bulk upload field?
Comment #5
handkerchiefComment #6
heyehren CreditAttribution: heyehren commentedYou may have to activate the media browser in the Media Bundle: /admin/structure/media/manage/image/form-display
For the image field, choose the Entity Browser widget.
When you add a new image media now you get to drag multiple files into the file upload window: /media/add/image
Comment #7
handkerchiefThank you kleinermann for the response. But i think we have a misunderstanding.
Multiple Images in 1 Media Image Entity is not my problem.
What i want/need:
Create multiple Media Image Entities with a bulk function. Why? Because i will store all the metadata infos of every single image in the Media Image Entities. If i upload multiple images in 1 Media Image Entity, i cannot store the metadata infos of every single image, i'm right? But i need the metadata infos stored of every single image. So far as i see, i need to create multiple Media Image Entities one after one manually. But for customers this is not very handy. Is there a solution for that? Or do i overlook something?
Comment #8
handkerchiefOr is there a way, that i create 1 Media Entity Image with 1 unlimited image field, and some unlimited metadata textfield (height)? If i upload 5 images, then it creates 5 metadata height entries...?
Comment #9
handkerchiefComment #10
RenrhafI'm also having the following need : an UI to upload many files (via DropzoneJS or Plupload for example) that will create one media entity per file uploaded.
Comment #11
handkerchief@Renrhaf
This works now with the dropzoneJS Entity Browser Widget.
Comment #12
dibs CreditAttribution: dibs commented@handkerchief Could you share how you got this working?
I can upload multiple files but they are still in a single entity so fields other than image are shared across the whole range of images which is not good.
When I try to use dropzoneJS it only uploads the first image.
I am after individual entities via a bulk upload.
Comment #13
siva01 CreditAttribution: siva01 at Ciklum Western Europe for Styria Digital Services commentedFor Drupal 8 is there this module https://www.drupal.org/project/media_bulk_upload
Comment #14
Devoleksiy CreditAttribution: Devoleksiy commentedThis module is not covered by Drupal’s security advisory policy.
The module has not been updated since 2019.
Maybe there is an alternative or a workaround?