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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kleinermann created an issue. See original summary.

heyehren’s picture

Status: Active » Closed (works as designed)

Ok, now the bulk upload field appeared. It must have been the cache...

handkerchief’s picture

handkerchief’s picture

Hmm... i see nothing. Where can I find the bulk upload field?

handkerchief’s picture

Status: Closed (works as designed) » Active
heyehren’s picture

FileSize
58.14 KB
56.32 KB
90.62 KB

You 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

handkerchief’s picture

Thank 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?

handkerchief’s picture

Or 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...?

handkerchief’s picture

Renrhaf’s picture

I'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.

handkerchief’s picture

@Renrhaf
This works now with the dropzoneJS Entity Browser Widget.

dibs’s picture

@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.

siva01’s picture

For Drupal 8 is there this module https://www.drupal.org/project/media_bulk_upload

Devoleksiy’s picture

This 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?