-1

Basically, I want to know how I can create a field in Keystone.js (Ver.6) that can take in multiple images as an input and then store them in a specified storage (S3 or Local).

I checked to see if their are any options for the Image file type, but turns out there's nothing like that.

Vibhavi_T
  • 1
  • 1

1 Answers1

0

Did you look at the documentation for how to create an store images? https://keystonejs.com/docs/fields/image

A single storage may be used by multiple file or image fields, but only for files or images.

https://keystonejs.com/docs/config/config#storage-images-and-files

You can even reference keystonejs github examples for clarification https://github.com/keystonejs/keystone/blob/main/examples/assets-s3/keystone.ts

@Vibhavi_T

Colburn
  • 1
  • 2
  • 1
    I did look at the documentation, and I've managed to create a Local storage. However If I setup an image field, it can only accept one image at a time. If I want to upload multiple images I need multiple fields to accept those images. – Vibhavi_T Aug 25 '23 at 03:09