8

I am searching for a way to uploading multiple images to sanity.io. Only thing that I found is this issue.

But maybe there is another way. Some npm-plugin or node.js app approach.

I'll be grateful for the help.

1 Answers1

11

I found the answer in sanity.io slack. This is it.

For multiple images upload you have to use array of images instead of field with 'image' type

{
 name: 'imagesGallery',
 title: 'Images gallery',
 type: 'array',
 of: [{ type: 'image' }]
}

This is simple and elegant way to solve my problem. Excellent!

  • 1
    Not a fan of this, as let's say you have a gallery and wish to give the client the ability to upload loads of images at once, rather than being able to select a bunch of them in the image gallery, they have to do them one by one and that's really tedious. – ToddPadwick Oct 13 '22 at 16:17