Skip to content
KeystoneJS LogoKeystoneJS (α)

File Adapters

The File field type can support files hosted in a range of different contexts, e.g. in the local filesystem, or on a cloud based file server.

Different contexts are supported by different file adapters. This package contains the built-in file adapters supported by Keystone.

LocalFileAdapter

Usage

const fileAdapter = new LocalFileAdapter({
  src: './files',
  path: '/public',
});

CloudinaryFileAdapter

Have you found a mistake, something that is missing, or could be improved on this page? Please edit the Markdown file on GitHub and submit a PR with your changes.

Edit Page