python更新文件mime_type相关提问,,之前上传 mp3 音频的


之前上传 mp3 音频的时候的时候没有显示地设定 mime_type,现在发现一些文件的 mime-type 是 audio/mpeg,还有一些文件是 audio/mpeg3,客户端请求的时候,content-type 也会把这种情况反映出来。但 firefox 浏览器是不支持播放 content-type 为 audio/mpeg3 的音频的。

现在我想批量把 mime-type 为 audio/mpeg3 的文件改为 audio/mpeg,貌似没提供这种 API?

同时,在调试 python SDK 的时候,我发现即使指定了 extra 中的 mime_type,但传上去之后,并不生效,系统依然会自动 detect mime_type。

以上,谢谢。

可以用命令行 qboxrsctl chgm

还可以通过我们的管理平台 https://portal.qiniu.com/bucket/resource?bucket=< your_bucket > 来修该。

编橙之家文章,

评论关闭