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

oss插件功能增强:增加bucket子目录和CDN路径显示;文件名可配置使用原文件名或随机文件名 #14

Open
KaneOne opened this issue Apr 8, 2021 · 0 comments

Comments

@KaneOne
Copy link

KaneOne commented Apr 8, 2021

  • OSS在使用是大多配合CDN使用,所以希望能在OSS插件中增加bucket path和cdn属性,这两个属性可为空,cdn属性为空时返回endpoint地址,cdn不为空时返回
    image
  • 文件名可配置使用原文件名或随机文件名
  • upload接口返回path,cdn值(如果允许随机文件名,提前指定文件名称约束,并在upload接口返回该文件名),同时在policy condition中加入路径约束
    ["content-length-range", 0, 1048576000], // 设置上传文件的大小限制
    ["starts-with","$key","path/"], //设置路径约束
    ["starts-with","$name","randomfilename"]//如果允许随机文件名,提前指定文件名称约束,并在upload接口返回该文件名
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