We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to hook up their static app/File field to a cloud provider for file storage (e.g AWS s3?) (from Slack)
A new file storage adapter which allows me to save & retrieve files directly to/from an S3 bucket.
Something like;
const { File } = require('@keystonejs/fields'); const { S3FileAdapter } = require('@keystonejs/file-adapters'); const fileAdapter = new S3FileAdapter({ /*...config */ }); keystone.createList('Applicant', { fields: { file: { type: File, adapter: fileAdapter, isRequired: true, }, }, });
The implementation of S3FileAdapter should follow the patterns of CloudinaryFileAdapter: https://github.com/keystonejs/keystone/blob/master/packages/file-adapters/lib/cloudinary.js
S3FileAdapter
CloudinaryFileAdapter
The text was updated successfully, but these errors were encountered:
#1986
Sorry, something went wrong.
Can be closed now.
No branches or pull requests
Feature request
Describe the solution you'd like
A new file storage adapter which allows me to save & retrieve files directly to/from an S3 bucket.
Something like;
The implementation of
S3FileAdapter
should follow the patterns ofCloudinaryFileAdapter
: https://github.com/keystonejs/keystone/blob/master/packages/file-adapters/lib/cloudinary.jsThe text was updated successfully, but these errors were encountered: