CORE: Configuring mimeTypes

copy link

Description

It is now possible to configure the list of file extensions that the application can serve. To do so, in the AdditionalMimeTypes section of the appsetting.json file, specify the list of mime types that the application will be able to serve. It isn't necessary to specify them all; you need only list those that are not already automatically served by the .NET Core framework.
For example, if you add the following line to the AdditionalMimeTypes section:

 
  ".kml": "application/vnd.google-earth.kml+xml" 
the application will be able to serve files with the .kml extension.

Features involved

Configuring the list of files that the application can serve.

Notes

  • Improvement related to support request 000942-2024.

Changed on: 07/06/2024 / From version: 24.0.9300