0

I have a folder of images I am trying to bulk upload. As they will be used in galleries that can be filtered by year and location I was hoping to make them individual nodes with year and location fields that the bulk upload would fill in with a preset on each upload batch.

I've played with the media entity module and managed to upload a group of images as a single media entity but I don't really want the files grouped.

Is there a way to do this in D8 yet? I'm fairly new to D8 so am not too sure of how things work yet.

1 Answer 1

1

DropZoneJS can auto-create media entities for every uploaded image.

Remember that you need to set up an entity browser using the DropZoneJS-Widget for the bulk-upload feature.

Your image gallery is an entity reference field to media entities (unlimited cardinality).

If you are looking for a general tutorial on how to set up media entities, I found this tutorial quite helpful.

1
  • 1
    The whole media stuff is indeed a bit complex, because it still is in heavy development. My major tutorial was this one. I would not recommend IEF though, for me plain entity browser was a better editor experience. Remember also this tutorial is for contrib media (<= Drupal 8.3) - it is largely the same though, you just need to pick the right version of the modules if you are using core media (>= Drupal v8.4)
    – Hudri
    Commented Oct 31, 2017 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.