Home arrow Hacks arrow This File type is not supported
joomla_commpow_sm.png JoomlaTips.org is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
This File type is not supported PDF Print E-mail
User Rating: / 3
PoorBest 

Have you ever seen this error message? Yea, correct it's seen in Media Manager when you try to upload files of certain types, as a MP3 file to use with your brand new MP# player module, or an Excel sheet to share whit your visitors.

Embarrassing. Let's get rid if it! 

The problem occurs when you try to upload an unsupported filetype via Media manager.

Before we get into hacking core files, it's advised to use some of available workarounds, and there are plenty of them.

First the non-Joomla ones: the plain old FTP and the hosting account's default file manager - all decent hosting accounts have some of them. You can use them to upload the files in corect location, just be aware of potential access rights problems

And there are some Joomla-workarounds too, as use of JCE Editor with the apropiate plugins or use of JoomleXplorer file manager to do the task.

But if you're in  need to do it via Media Manager, here's the info you need:

A. On Joomla 1.0.*

Open in your favourite editor (preferabbly one with line numbers displayed) the file /administrator/components/com_media/admin.media.php (of course, make a backup first!)

Here, the code around the lines 177-194 it should look like this:

'bmp',
'csv',
'doc',
'epg',
'gif',
'ico',
'jpg',
'odg',
'odp',
'ods',
'odt',
'pdf',
'png',
'ppt',
'swf',
'txt',
'xcf',
'xls'

To add aditional filetypes, just add a comma after the last entry and in quotes put the extension. Here's the code for mp3 support:

			'bmp',
'csv',
'doc',
'epg',
'gif',
'ico',
'jpg',
'odg',
'odp',
'ods',
'odt',
'pdf',
'png',
'ppt',
'swf',
'txt',
'xcf',
'xls',
'mp3'
Save the file and have fun!

A. On Joomla 1.5.*

The solution is much simpler. Go to Global configuration>System tab, look for the Media Settings, first item: Legal Extensions (File Types), and add your extension to the end of allready lenghtly list:

Before:
bmp,csv,doc,epg,gif,ico,jpg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls,BMP,CSV,DOC,EPG,GIF,ICO,
JPG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,SWF,TXT,XCF,XLS
After:
bmp,csv,doc,epg,gif,ico,jpg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls,BMP,CSV,DOC,EPG,GIF,ICO,
JPG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,SWF,TXT,XCF,XLS,mp3
Save the Global Settings, and upload your mp3's.


You think this page might be useful for others too? Bookmark it to your preferred social bookmarking site, clicking on the corresponding icon:
Digg!Reddit!Del.icio.us!Spurl!Wists!Simpy!Newsvine!Blinklist!Furl!Fark!Blogmarks!Yahoo!Smarking!Netvouz!Shadows!RawSugar!Ma.gnolia!FeedMeLinks!BlinkBits!Tailrank!Add this social bookmarking functionality to your website! title=
Comments (0)Add Comment

Write comment

busy
 
< Prev   Next >