Skip to content

Select multiple images #3244

@mmintel

Description

@mmintel

Describe the bug
Hi there, no matter how I configure the CMS, I am not able to select multiple images in the images widget. As you can see in my config I have tried allow_multiple as well as passing a config to the media library (which is only necessary if I use a third party media library?)

To Reproduce

  1. create a new post
  2. select media
  3. media browser opens
  4. i click the first media and it's selected
  5. i click the second media, it's selected and the first is deselected

Expected behavior
I expected to be able to select multiple images or some kind of button to enable this.

Applicable Versions:

  • Netlify CMS version: 2.10.20
  • Git provider: Github
  • OS: Mac
  • Browser version Chrome 80
  • Node.JS version: 13.6.0

CMS configuration

media_folder: example/data/media
public_folder: /media

collections:
  - label: "Settings"
    name: "settings"
    editor:
      preview: false
    files:
      - label: "Feed"
        name: "feed"
        file: "example/data/settings/feed.yml"
        fields:
          - {label: Name, name: name, widget: string}
          - {label: Username, name: username, widget: string}
          - {label: Description, name: description, widget: text}
          - {label: Website, name: website, widget: string}
          - {label: Avatar, name: avatar, widget: image}
  - name: "post"
    label: "Posts"
    label_singular: "Post"
    folder: "example/data/posts"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    editor:
      preview: false
    fields:
      - { label: "Title", name: "title", widget: "string" }
      - label: "Media"
        name: "media"
        widget: "image"
        allow_multiple: true
        media_library:
          config:
            multiple: true
      - { label: "Location", name: "location", type: "Point", widget: "map", required: false }
      - { label: "Body", name: "body", widget: "text", required: false }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions