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访问控制下载时,有指定头部参数的功能,但指定Content-Type后又提示签名错误 #129

Open
skycyclone opened this issue Dec 18, 2019 · 1 comment

Comments

@skycyclone
Copy link

如题:oss访问控制下载时,有指定头部参数的功能,但指定Content-Type后又提示签名错误,
本来设置头部是为了下载时重命名下载的文件,因为文件存在oss里是以日期及随机码文件名存放,下载时客户需要知道这文件是什么,就需要重命名这功能。

本来可以直接将文件直接下载到内存或者本地再改文件名也行,但文件过大,1G多,等下载到本地黄花菜都凉了,下载到内存,内存也不一定够大,只能用访问控制让客户用oss的链接直接下载,但又不能重命名,相当烦恼

@ritaswc
Copy link

ritaswc commented Jul 22, 2020

这个和OSS无关。自己下载到/tmp下面,然后用文件指针读取内容,没听说把文件全部加载到内存里的

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

2 participants