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
Rca Ieftin
July 29, 2011 6:59 AM | Reply
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 ?
Lemurc
December 12, 2011 8:34 AM | Reply
Rca Ieftin I think not. I`m also curios about the right answer.
Daniel - rca ieftin
December 12, 2011 10:59 PM | Reply
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