Skip to content

fix(media): label audio attachments served as video/* with an audio mime type - #1704

Merged
nguyenvantruc92 merged 1 commit into
mainfrom
fix/audio-voice-note-mime-type
Nov 12, 2026
Merged

nguyenvantruc92 merged 1 commit into
mainfrom
fix/audio-voice-note-mime-type

Conversation

@nguyenvantruc92

Copy link
Copy Markdown
Contributor

Meta serves voice notes as .mp4 with content-type video/mp4, so the mirrored
object was stored as video/mp4 even though the webhook kind is audio. Consumers
that read only the object's content-type (AI speech-to-text) rejected it with
"Unsupported audio format: video/mp4".

When an audio attachment is downloaded as video/mp4, video/ogg or video/webm,
store it as audio/mp4, audio/ogg or audio/webm. This covers both the first
mirror and the restore of an evicted object. Files already stored as video/mp4
are not changed.

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 12, 2026
@nguyenvantruc92
nguyenvantruc92 merged commit ff6af2d into main Nov 12, 2026
15 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant