How to upload multiple images to sanity.io?

Viewed 2592

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 Answers

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!

Related