Preserve MIME type for unknown extensions during import
See original GitHub issueHi @najadojo, hope you’re doing well! Here’s a suggestion from @rawnsley and Mozilla Hubs.
During GLB to GLTF conversion, it might be good to preserve the mimeType
field, at least for types that are unknown to the guessFileExtension
function. This would enable RGBE environment maps that Hubs has an extension for. Even if these files got a .bin
extension, they would have a MIME type applied.
via https://github.com/AnalyticalGraphicsInc/gltf-vscode/issues/243
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Properly configuring server MIME types - MDN Web Docs
Modern versions of Apache report none for files with unknown content types. Nginx will report text/plain if you don't define a default content...
Read more >Import of Mime Type Xlsm File Returns Error "Unknown File ...
1. From Workspace menu, select File->Import->File. · 2. Click on Choose File button. · 3. Select a file with .xlsm extension and click...
Read more >Unknown file type MIME?
Short answer: Do not send MIME type for unknown data. To be more clear: Do not use Content-Type header at all. References:.
Read more >Configuration: Allowed MIME Types for Document Upload
When checking documents, the system assigns unknown MIME types to the application/octet-stream MIME type. If you define the application/octet-stream MIME type ...
Read more >If a file has an extension that is not supported by any of the ...
In your specific case, the file was an unknown file format, so it was recognized as a generic binary document. If you are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rawnsley and @emackey I’ve merged a change and published the npm package that addresses this. Here is a section of the sample gltf after conversion:
🤯