Strapi Provider Upload Cos

screenshot of Strapi Provider Upload Cos
strapi

Overview

This article provides information about the parameters for the strapi-provider-upload-cos plugin. It lists the different parameters, their types, and whether they are required or not. The article also includes descriptions and default values for each parameter.

Features

  • SecretId: The user's SecretId. This parameter is of type string and is required.
  • SecretKey: The user's SecretKey. It is recommended to only use this parameter for frontend debugging purposes to avoid exposing the key. This parameter is of type string and is required.
  • Region: The region where the storage bucket is located. This parameter is of type string and is required.
  • Bucket: The name of the storage bucket. The naming convention for the bucket is BucketName-APPID, and the bucket name provided must follow this format. This parameter is of type string and is required.
  • BasePath: The default folder path for file uploads. This parameter is of type string and is optional, with a default value of "/".
  • BaseOrigin: The CDN root path. This parameter is of type string and is optional, with a default value of "http://{Bucket}.cos.{Region}.myqcloud.com".
  • imageAve: A boolean parameter indicating whether to get the main color of an image. If enabled, the color will be stored in the provider_metadata field. This parameter is of type boolean and is optional, with a default value of false.

Summary

This article describes the parameters for the strapi-provider-upload-cos plugin, which is used for uploading files to a COS storage bucket. It provides the parameter names, types, whether they are required or not, default values, and descriptions. The article also includes a guide for installing the plugin and setting up the necessary configuration.

strapi
Strapi

Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.