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

Note field option  #33

@mickaelchanrion

Description

@mickaelchanrion

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions