UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

28 lines (17 loc) 1.16 kB
# CloudinaryImages Field `Array` — Displayed as a series of images, and an upload field in the Admin UI. Stores multiple images in a array as a nested `Schema`, each of which expose the same methods as the `cloudinaryimage` field. ```js { type: Types.CloudinaryImages } ``` ## Options `folder` `String` specifies a custom folder/prefix for the Cloudinary image `public_id` when `cloudinary folders` is set to `true`. ```js { type: Types.CloudinaryImages, folder: 'path/to/image' } ``` > Note: If you want Cloudinary to automatically create folders when the cloudinary folders option is set to true, make sure you enable "Auto-create folders" in your Cloudinary account "Upload Settings". `autoCleanup` `Boolean` When `true`, changes Keystone's default behavior from `remove` (which only removes the Cloudinary image from the database) to `delete` (which removes the image from both the database and Cloudinary storage). Additionally, this option replaces an existing image (if one already exists) during upload. This only occurs on calls to [updateItem](/api/list/update-item) ```js { type: Types.CloudinaryImage, autoCleanup : true } ```