Skip to content

fix(upload): enforce strict mp4 validation - #63

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
qwenbona:fix/upload-strict-mp4
Jul 31, 2026
Merged

fix(upload): enforce strict mp4 validation#63
ralyodio merged 1 commit into
moshcoder:masterfrom
qwenbona:fix/upload-strict-mp4

Conversation

@qwenbona

Copy link
Copy Markdown
Contributor

The inline check accepted application/octet-stream (any file) and used an unanchored regex so substring MIME types like text/video/mp4 passed. Route through the existing mediaTypeForUpload helper which does exact Object.hasOwn matching and extension fallback.

Fixes #53

The inline check accepted application/octet-stream (any file) and used
an unanchored regex so substring MIME types like text/video/mp4 passed.
Route through the existing mediaTypeForUpload helper which does exact
Object.hasOwn matching and extension fallback.

Fixes moshcoder#53
@ralyodio
ralyodio merged commit fe40365 into moshcoder:master Jul 31, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants