-
How to do images / files “bulk upload” in keystone 6 ? I have a gallery model, on clicking on “add gallery” i want to add some photos and after saving i want to write it to DB and send it to AWS S3 bucket. Right now the code only works for one picture. So if I have 10 pictures, I have to do 10 times to write it manually. import { list } from '@keystone-6/core';
import { allowAll } from '@keystone-6/core/access';
import { image } from '@keystone-6/core/fields';
export const Gallery = list({
access: allowAll,
fields: {
image: image({
storage: 'amazon_S3_images',
}),
},
}); |
Beta Was this translation helpful? Give feedback.
Answered by
gautamsi
Feb 24, 2025
Replies: 1 comment
-
you can extend the image field view to do that or create a custom field with relationship to create media gallery items for bulk upload. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dcousens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can extend the image field view to do that or create a custom field with relationship to create media gallery items for bulk upload.