Last active
June 23, 2023 08:24
-
-
Save harikrishna43/33a2ef5b4cef36780af06ef95760e284 to your computer and use it in GitHub Desktop.
Umbraco 11: allow 3D images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up custom content types -associating file extension to MIME type | |
var provider = new FileExtensionContentTypeProvider(); | |
// Add new mappings | |
provider.Mappings.Add(".glb", "model/gltf-binary"); | |
provider.Mappings.Add(".gltf", "model/gltf+json"); | |
app.UseStaticFiles(new StaticFileOptions | |
{ | |
ContentTypeProvider = provider | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment