Skip to content

Magic-byte content-type verification helper #211

@genu

Description

@genu

Ship an opt-in server validator that sniffs the first N bytes via file-type and throws if the declared MIME doesn't match. Today the docs explain how to write one by hand — making it a one-line opt-in lowers the bar for security-conscious users.

defineUploadServerConfig({
  validators: [verifyContentType()],
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    roadmapTracked future work; no commitment to deliver

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions