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

希望S3支持预签名URL方式上传,消除alist服务器流量瓶颈 #7762

Open
4 tasks done
zm999999 opened this issue Jan 1, 2025 · 1 comment
Open
4 tasks done
Labels
enhancement New feature or request

Comments

@zm999999
Copy link

zm999999 commented Jan 1, 2025

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 / 需求描述

目前上传到对象存储需要去alist服务器绕一圈,服务器流量存在瓶颈,希望可以支持直接使用对象存储的预签名URL从浏览器端直传到对象存储服务,从而消除瓶颈。

Suggested solution / 实现思路

  • 实现思路
  1. 上传前获取允许PUT请求的预签名URL返回页面
  2. 页面直接将文件PUT到预签名URL,不经过alist服务器
  3. 完成上传
  • 可能的修改点:
  1. 页面上传逻辑,如果当前对象存储支持预签名上传
  2. 添加获取预签名URL接口
  3. 存储管理中添加预签名URL的超时时间(或直接使用目前的“签名链接有效期”)、是否使用预签名上传

生成预签名URL可参考以下文档:
https://developers.cloudflare.com/r2/api/s3/presigned-urls/

@zm999999 zm999999 added the enhancement New feature or request label Jan 1, 2025
@zm999999 zm999999 changed the title 希望支持对象存储的预签名上传,消除alist服务器流量瓶颈 希望S3支持预签名URL方式上传,消除alist服务器流量瓶颈 Feb 8, 2025
@zm999999
Copy link
Author

zm999999 commented Feb 8, 2025

是指通过浏览器页面向挂载的S3对象存储目录中上传文件,不是向alist提供的S3的访问方式上传,之前写的可能有歧义。。。

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

1 participant