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

MimeTypes 获取不正确 #112

Open
johnshen opened this issue Apr 17, 2019 · 0 comments
Open

MimeTypes 获取不正确 #112

johnshen opened this issue Apr 17, 2019 · 0 comments

Comments

@johnshen
Copy link

johnshen commented Apr 17, 2019

客户端上传图片真实类型与后缀不符合时,会出现图片无法显示的情况。
如客户端上传图片 a.png 但实际类型为 image/tiff,OSS上传抓包发现图片 content-type 为 image/png,而非 image/tiff

经排查发现SDK使用后缀进行判断,详见 MimeTypes::getMimetype

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