Is there a set of constants in the framework for all the standard content types?
In the new ASP.NET Core MimeMapping can be used with the filename:
MimeMapping
MimeMapping.GetMimeMapping("1.jpg")
Should return image/jpeg.
image/jpeg
All the mappings can be found here and it is also possible to add your own (see e.g. this answer).