We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1e3734 + d9cf91c commit 8bcea48Copy full SHA for 8bcea48
1 file changed
src/upload/upload.service.ts
@@ -23,6 +23,8 @@ export class UploadService {
23
this.configService.get('kodo.SECRET_KEY'),
24
);
25
this.config = new qiniu.conf.Config();
26
+ // 设置存储区域
27
+ this.config.zone = qiniu.zone.Zone_z0; // 根据你的空间所在的区域选择:华东(z0)、华北(z1)、华南(z2)、北美(na0)等
28
this.bucketManager = new qiniu.rs.BucketManager(this.mac, this.config);
29
const putPolicy = new qiniu.rs.PutPolicy({
30
scope: this.configService.get('kodo.BUCKET'),
0 commit comments