keystonejs / keystone-storage-adapter-s3

⚠️ Archived - Legacy S3 Storage Adapter for KeystoneJS
MIT License
17 stars 55 forks source link

Note field option #33

Open mickaelchanrion opened 6 years ago

mickaelchanrion commented 6 years ago

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