Skip to content

Properly Implement MIME Type Validation for 3D Input Formats #134

@simarjot0032

Description

@simarjot0032

We maintain a list of supported 3D input formats in backend/src/constants/formats.ts (e.g., obj, stl, ply, glb, fbx, etc.). Previously, MIME type validation was implemented but removed because it was failing due to improper or missing MIME data for certain formats.

A suggestion was made to use existing MIME type libraries to properly type-secure these objects instead of relying solely on extensions.

Problem

  • MIME validation is currently disabled.
  • Validation relies only on file extensions.
  • This may introduce security risks or incorrect file acceptance.
  • Some 3D formats do not have standardized or widely supported MIME types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions