x-cos-meta-
开头的自定义头部,包括用户自定义元数据头部后缀和用户自定义元数据信息,这些头部将作为对象元数据保存。PutObjectRequest request = new PutObjectRequest(bucket, key, srcPath);request.SetRequestHeader("x-cos-meta-key", "value");request.SetRequestHeader("Content-Disposition", "attachment");COSXMLUploadTask uploadTask = new COSXMLUploadTask(request);uploadTask.SetSrcPath(srcPath);
本页内容是否解决了您的问题?