I wanted to allow .pdf uploads in one of our Magento sites, and for the life of me, I could not find any docs to help me along. So, after digging through Magento’s extensive file structure for hours.. I found this very very easy solution to my problem.
Go to: /App/code/Core/Mage/Cms/etc/config.xml
You just have to add pdf as an extension.. so..
starting on line 110
<extensions>
<allowed>
<jpg>1</jpg>
<jpeg>1</jpeg>
<png>1</png>
<gif>1</gif>
<pdf>1</pdf>
</allowed>
<image_allowed>
<jpg>1</jpg>
<jpeg>1</jpeg>
<png>1</png>
<gif>1</gif>
</image_allowed>
<media_allowed>
<flv>1</flv>
<swf>1</swf>
<avi>1</avi>
<mov>1</mov>
<rm>1</rm>
<wmv>1</wmv>
</media_allowed>
</extensions>
Best would be to extend that config file so as to not change a core Magento file that would risk being overridden when you next update. Hope that helps someone!
Tags: allowed extensions, file browser, magento, pdf, WYSIWYG