AssetFileExtensions

White list of comma-separated asset file extensions which may be uploaded.

Regex syntax is supported. For example, jpe?g covers both "jpeg" and "jpg".

Default

Default asset extensions supported in MT:

AssetFileExtensions gif, jpe?g, png, bmp, tiff?, mp3, ogg, aiff, wav, wma, aac, flac, m4a, mov, avi, 3gp, asf, mp4, qt, wmv, asx, mpg, flv, mkv, ogm

There is a related directive called DeniedAssetFileExtensions, and it has a default value as following. If you wish to upload one of these file extensions, you also need to specify DeniedAssetFileExtensions by excluding the extension which you permit.

DeniedAssetFileExtensions ascx, asis, asp, aspx, bat, cfc, cfm, cgi, cmd, com, cpl, dll, exe, htaccess, htm, html, inc, jhtml, js, jsb, jsp, mht, mhtml, msi, php, php2, php3, php4, php5, phps, phtm, phtml, pif, pl, pwml, py, reg, scr, sh, shtm, shtml, vbs, vxd

Examples

Add support for pdf, and MS Word doc extensions:

AssetFileExtensions gif, jpe?g, png, bmp, tiff?, mp3, ogg, aiff, wav, wma, aac, flac, m4a, mov, avi, 3gp, asf, mp4, qt, wmv, asx, mpg, flv, mkv, ogm, pdf, docx?

Allow only limited type of images and PDF

AssetFileExtensions gif, jpe?g, png, pdf
This page was last updated on 2011-07-25, 19:05.

3 Notes

You said that:

"If you wish to upload one of these file extensions, you also need to specify DeniedAssetFileExtensions by excluding the extension which you permit."

My question is how to perform this thing ? It's enough to delete the file type from that list ? The rest of file formats are default accepted ?

Rca Ieftin I think not. I`m also curios about the right answer.

Hello, I just wanted to express some gratitude to the ones that put such effort into MT. I have just created my first site, still have some small issues with it, but i am confident that they will be fixed. Thanks, Daniel

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.