设置阿里云请求头
jiangtao opened this issue · 4 comments
jiangtao commented
使用stream的时候 用ajax formdata上传,请求头转成默认的下载请求头。
jiangtao commented
berwin commented
可以在这里设置一些header信息~ 包括 content-type Expires ACL 等。。
var upload = ossStream.upload({
Bucket: 'Bucket',
Key: 'Key (可以理解为文件名)',
ContentType: 'image/png',
ContentDisposition: '',
// CacheControl: '',
// ContentEncoding: '',
// Expires: '',
// ServerSideEncryption: '',
// ACL: 'public-read'
});