Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript中interface PutPolicyOptions中确实参数forceSaveKey #388

Open
nadjin opened this issue Oct 30, 2021 · 0 comments
Open

typescript中interface PutPolicyOptions中确实参数forceSaveKey #388

nadjin opened this issue Oct 30, 2021 · 0 comments

Comments

@nadjin
Copy link

nadjin commented Oct 30, 2021

    const options: PutPolicyOptions = {
      scope: this.option.bucket,
      // TODO SDK中没有forceSaveKey参数,SDK修改后需要修改
      // @ts-ignore
      forceSaveKey: true,
      saveKey: policy.name,
      insertOnly: 1,
      detectMime: 1,
      mimeLimit: policy.kind,
      fsizeLimit: policy.sizeMax,
      fsizeMin: policy.sizeMin,
    };
    const putPolicy = new PutPolicy(options);

index.ts 文件PutPolicyOptions接口中没有定义forceSaveKey参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant