English | 简体中文
Description
Alicloud OSS module for Nest framework (node.js)
Before Installation
- Create Alicloud account
- Purchase OSS. (read more)
- Create bucket, go to Dashboard > Object Storage Service > Bucket List > Add Bucket
Installation
$ npm install --save nestjs-alicloud-oss#or $ yarn add nestjs-alicloud-oss
Documentation
- Import the
AlicloudOssModule
with the following configuration:
;; ;;
You may provide a default
bucket
name for the whole module, this will apply to all controllers withing this module. You can also provide (override) thebucket
in the controller, for each route.
Examples
Store a file using the default bucket
;;
Store a file using a specific bucket and folder
;;
Store a file using a custom filename and custom bucket
;;;
License
The MIT License.