Skip to content
New issue

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

S3FileAdapter for static file uploads #1853

Closed
jesstelford opened this issue Oct 27, 2019 · 2 comments
Closed

S3FileAdapter for static file uploads #1853

jesstelford opened this issue Oct 27, 2019 · 2 comments

Comments

@jesstelford
Copy link
Contributor

Feature request

how to hook up their static app/File field to a cloud provider for file storage (e.g AWS s3?)
(from Slack)

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;

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

@LiamAttClarke
Copy link
Contributor

#1986

@Vultraz
Copy link
Contributor

Vultraz commented Feb 25, 2020

Can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants