Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Note field option #33

Open
mickaelchanrion opened this issue Feb 16, 2018 · 0 comments
Open

Note field option #33

mickaelchanrion opened this issue Feb 16, 2018 · 0 comments

Comments

@mickaelchanrion
Copy link

It appears that using this storage adapter in conjunction with the field option 'note' leads to a blank page for all pages in back-office. Am I doing something wrong?

var storage = new keystone.Storage({
  adapter: require('keystone-storage-adapter-s3'),
  s3: {
    key: process.env.S3_KEY,
    secret: process.env.S3_SECRET,
    bucket: process.env.S3_BUCKET,
    region: process.env.S3_REGION,
    path: '/images/myModel/',
    headers: {
      'x-amz-acl': 'public-read'
    }
  },
  schema: {
    bucket: true,
    etag: false,
    path: true,
    url: true
  }
})

MyModel.add({
  image: {
    type: Types.File,
    note: '324 x 324 px (retina)',
    storage: storage
    mimetype: ['image/png', 'image/jpeg']
  }
})

Thx by advance

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

No branches or pull requests

1 participant