Skip to content

Conversation

@PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented May 30, 2025

What?

The browser was incorrectly setting the mimetype for .glb and .gltf files to application/octet-stream when uploading when they should be receiving proper types consistent with glb and gltf.

This patch adds logic to infer the correct MIME type for .glb files (model/gltf-binary) & gltf files (model/gltf+json) based on file extension during multipart processing, ensuring consistent MIME type
detection regardless of browser behavior.

Fixes #12620


@PatrikKozak PatrikKozak changed the title fix: correctly detect .glb & gltf mimetypes during upload fix: correctly detect glb & gltf mimetypes during upload May 30, 2025
@PatrikKozak PatrikKozak merged commit 05eeddb into main Jun 2, 2025
227 of 232 checks passed
@PatrikKozak PatrikKozak deleted the fix/glib-file-mimetype branch June 2, 2025 18:26
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2025

🚀 This is included in version v3.41.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment