Thursday, September 24, 2015

Site core and Tif files

Had a client requirement to be able to Upload a TIF file though media gallery and then be able to use it in a image field. Looking at how the file was upload 1 noticed that it was uploading the filein the file template. This means that you cannot call it from an image field.

There are a couple of different pieces to connect. In the apps include folder these is a file called mime types. This config file lists all of the different media types that sitecore can deal with. if you search for. gif you will see that entry is commented out. Same for jpg and other image types. This is for a simple reason; if you comment it out here you can add a custom type under the media types node in the web config.