Skip to content
New issue

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

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

Already on GitHub? # to your account

第三方云存储http请求头问题 / http head error #1681

Closed
chrislxn opened this issue Mar 31, 2023 · 4 comments
Closed

第三方云存储http请求头问题 / http head error #1681

chrislxn opened this issue Mar 31, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@chrislxn
Copy link

存储策略使用阿里云OSS后,部分文件下载出现问题
例:下载PDF时,浏览器不会弹出下载窗口,而是直接通过在新页面内试图打开文件
此问题出现在视频和PDF文件下载时较多。
解决方案是在oss控制台中更改http请求头即可
但不可能每个文件都手动修改。
可否在文件上传时就自动设定请求头,以避免此类问题
Uploading image.png…

@chrislxn
Copy link
Author

image

@HFO4 HFO4 added the enhancement New feature or request label May 24, 2023
@HFO4
Copy link
Member

HFO4 commented May 25, 2023

您好,经确认分片上传接口无法指定mime type。
能否检查下你的文件重命名策略,最好保留扩展名,这样OSS会尝试自动设置 mime type。

@HFO4
Copy link
Member

HFO4 commented May 25, 2023

您好,经确认分片上传接口无法指定mime type。 能否检查下你的文件重命名策略,最好保留扩展名,这样OSS会尝试自动设置 mime type。

仔细看了下文档,好像可以设定,稍后提交commit修复。

@HFO4
Copy link
Member

HFO4 commented May 25, 2023

Fixed in 89ee147

@HFO4 HFO4 closed this as completed May 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants