0.0.4 • Published 5 years ago

strapi-provider-upload-oss2 v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

strapi-provider-upload-oss

A provider for strapi server to upload file to Aliyun OSS

Installation

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

The installation will trigger a refresh for the server, and then you can go to http://your-strapi-server/admin/plugins/upload/configurations/development, choose Aliyun Web Service OSS in the dropdown to activate the provider.

For more details, please see: https://strapi.io/documentation/guides/upload.html#install-providers

Usage

The description for each fields to fill in strapi's configuration UI are as follows:

Fieldvalue
AccessKeyId token<aliyun access key id>
AccessKeySecret token token<aliyun access key secret>
RegionOSS region
Bucketbucket name
Upload Pathpath to store the file
Base URL to accesscan be your custom oss url for accessing the uploaded file, e.g. //www.website.com
timeoutOSS upload timeout (unit: seconds)
Automatically generate thumbnails (Beta)VIDEO FILES ONLY currently only supports .mp4 file, will generate thumbnail for the video uploaded (screenshot at 00:01 of the video, size: 480x360)

Example: