Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 775 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 775 Bytes

provider-upload-ali-oss

Installation

$ npm install provider-upload-ali-oss --save

or

$ yarn add provider-upload-ali-oss --save

Usage

Strapi v4

The lastest version of the provider supports v4 by default. See example below for ./config/plugins.js:

module.exports = ({ env }) => ({
  upload: {
    config: {
      provider: 'provider-upload-ali-oss', // full package name is required
      providerOptions: {
          accessKeyId: env('ALI_ACCESS_KEY_ID', ''),
          accessKeySecret: env('ALI_ACCESS_KEY_SECRET', ''),
          region: env('ALI_REGION', ''),
          bucket: env('ALI_BUCKET', ''),
          prefix: env('ALI_PREFIX', ''),
          cdn: env('ALI_CDN_URL', ''),
      },
    },
  },
});