payload icon indicating copy to clipboard operation
payload copied to clipboard

GLB files receiving wrong mime type

Open denolfe opened this issue 7 months ago • 0 comments

Describe the Bug

Uploading a .glb file (3D model) is being incorrectly detected as application/octet-stream instead of model/gltf-binary.

Note: The file-type package appears to detect the proper mime type if fed directly into the fileTypeFromBuffer function.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/blob/main/test/uploads/config.ts

Reproduction Steps

  1. pnpm dev uploads
  2. Upload .glb file into Media collection

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Payload: 3.40.0

denolfe avatar May 30 '25 13:05 denolfe