Skip to content

能否生成一个文件或者文件夹的临时访问链接? #8336

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

Open
4 tasks done
fengyang221 opened this issue Apr 9, 2025 · 3 comments
Open
4 tasks done

能否生成一个文件或者文件夹的临时访问链接? #8336

fengyang221 opened this issue Apr 9, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@fengyang221
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

这个功能大家应该很常用到才对。例如视频的临时授权访问,那么就需要生成一个临时sign。目前有一个“签名所有”功能,但是这个签名无法设定过期时间,而且我看了下,好像一直都不过期,而且sign值在同一个用户下是相同的,这完全不符合需求。
希望能有这种功能:根据token,path,有效期,生成一个sign,path可以是具体一个文件,也可以是一个文件夹。
然后 http://www.xxx.com/aaa/bbb/cccc.mp4?sign=xxxxxxxxx,这种形式访问

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@fengyang221 fengyang221 added the enhancement New feature or request label Apr 9, 2025
Copy link

您提到的功能需求是关于生成一个文件或文件夹的临时访问链接。这个功能确实很有用,尤其是在需要临时授权访问视频等资源的情况下。当前的“签名所有”功能无法设定过期时间,并且签名在同一个用户下是相同的,这不符合临时访问的需求。

您希望能够根据token、path和有效期生成一个sign,path可以是具体的文件或文件夹,并通过类似于 http://www.xxx.com/aaa/bbb/cccc.mp4?sign=xxxxxxxxx 的形式进行访问。

这个功能请求已经被记录下来,并会被考虑在未来的版本中实现。

如果您有其他问题或需要进一步的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@pongfcnkl
Copy link

签名默认是一小时过期,可以改源码改成按秒

@uniqwei
Copy link

uniqwei commented Apr 11, 2025

我没试过,但当前感觉可以打开 S3 API 功能,然后用AK/SK去生成一个带时间的签名链接

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

No branches or pull requests

3 participants