Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save harikrishna43/33a2ef5b4cef36780af06ef95760e284 to your computer and use it in GitHub Desktop.
Save harikrishna43/33a2ef5b4cef36780af06ef95760e284 to your computer and use it in GitHub Desktop.
Umbraco 11: allow 3D images
// 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