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

文件上传格式application/octet-stream #55

Open
HeMa321 opened this issue May 20, 2019 · 2 comments
Open

文件上传格式application/octet-stream #55

HeMa321 opened this issue May 20, 2019 · 2 comments

Comments

@HeMa321
Copy link

HeMa321 commented May 20, 2019

音频文件,图片等上传成功之后请求头在OSS中查看请求头都是application/octet-stream,怎么设置上传请求头等格式?

@mamaledoboi
Copy link

我的问题和楼主一样,求解决办法。
我看AliyunOSS.asyncUpload(bucketName, objectKey, dataUrl, appendOptions)方法中appendOptions可以设置"contentType":'video/mp4',但是未生效。

@hezhii
Copy link

hezhii commented Apr 2, 2022

这个有什么解决办法吗?我看android 里面设置的是 application/octet-stream

metadata.setContentType("application/octet-stream");

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

3 participants