payload
payload copied to clipboard
GLB files receiving wrong mime type
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
-
pnpm dev uploads - Upload .glb file into Media collection
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Payload: 3.40.0