alaska-field-image-aliyun

0.13.2 • Public • Published

alaska-field-image-aliyun

Alaska aliyun image field

//alaska config
 
export default {
 
  'alaska-field-image-aliyun': {
    allowed: ['png','jpg','bmp'],
    multi: false,
    //empty or ends with /
    pathFormat: 'YYYY/MM/DD/',
    //empty or ends with /
    prefix: 'http://maichong.it/',
    //cdn image thumb url suffix, string or false
    thumbSuffix: '@2o_200w_1l_90Q.jpg',
    oss: {
      // https://github.com/ali-sdk/ali-oss#ossoptions
      accessKeyId: 'accessKeyId',
      accessKeySecret: 'accessKeySecret',
      endpoint: 'http://oss-cn-hangzhou.aliyuncs.com',
      bucket: 'your bucket',
    }
  }
 
}

Contribute

Maichong Software

Liang Xingchen

License

This project is licensed under the terms of the MIT license

/alaska-field-image-aliyun/

    Package Sidebar

    Install

    npm i alaska-field-image-aliyun

    Weekly Downloads

    13

    Version

    0.13.2

    License

    MIT

    Unpacked Size

    6.61 kB

    Total Files

    3

    Last publish

    Collaborators

    • liangxingchen