Media libraries support the following types of images: bmp, gif, png, jpg, jpeg, tiff, tif. These types of image files can be displayed on your site by default.
The system detects audio and video files based on their MIME type (audio types starting with the audio/ prefix and video types starting with the video/ prefix). For successfully detected audio and video file types, the system renders appropriate HTML5 markup. The types of files that can be previewed or played on your site therefore depend on the web browser (modern HTML5 web browsers typically support one or more of the ogg, mp4, or webm video codecs, and mp3, wav, or ogg audio codecs).
Allowing custom file types to be added into media libraries
By default, the system can recognize and process any media types, if you have the right player for the given file type. You can allow custom file types by modifying the site's web.config file. However, by specifying allowed file types using web.config keys, you disable the automatic detection and support for media file types other than those explicitly added to the site's web.config file.
Example of configuring custom detection of media file types
To allow only media files of specified types to be added into media libraries:
Add the following keys into the appSettings section of your web.config file.
<add key="CMSImageExtensions" value="bmp;gif;ico;png;wmf;jpg;jpeg;tiff;tif" /> <add key="CMSAudioExtensions" value="wav;mp3" /> <add key="CMSVideoExtensions" value="mp4;ogg" />
- Save the web.config file.
Vector graphic formats unsupported
Vector graphic formats (such as svg, eps, pdf, ai) are not supported as image extensions in media libraries. These formats can be stored as documents, but cannot be displayed as images.
Allowing upload of selected files into media libraries
- Open the Settings application.
- Navigate to the Content -> Media category.
- Add the selected file extensions into the Media file allowed extensions setting (separated by semicolons).
- Save the changes.
Was this page helpful?