Page 1 of 1

upload mp3 to media manager---how?

Posted: Sun Apr 30, 2006 4:26 pm
by researchtoxic
most of the mp3 players want you to put your files in media manager /images/stories  However whenever I try to upload them it says the file type is not supported. What do i need to do?

Re: upload mp3 to media manager---how?

Posted: Sun Apr 30, 2006 5:31 pm
by JAF Site Design
In your favorite editor (preferabbly one with line numbers displayed), open up /administrator/components/com_media/admin.media.php

From lines 177-194 it should look like this:

Code: Select all

			'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:

Code: Select all

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

Re: upload mp3 to media manager---how?

Posted: Tue May 02, 2006 2:59 am
by researchtoxic
awesome thanks!

Re: upload mp3 to media manager---how?

Posted: Sat Sep 16, 2006 3:30 am
by vbsouthern
I followed all of these instructions to the letter.  I downloaded the admin.media.php file, edited the file, and then uploaded it.  I started a new browser window, logged-in as administrator, went to Media Manager, tried to upload a mp3 file and instead of getting the error,

This file type is not supported

I get this error instead,

Upload FAILED

Just to be sure that Joomla was working right I tried uploading some other files.  I uploaded a gif, png and a jpg with no problem at all.  Nothing seems to work. It seem to have kind-of worked except I still can't upload a file.

I can upload the mp3 files with FileZilla with no problem but the people who will be using the website are regular people, not computer geeks like me.  I need to find an answer for this.  Any help would be greatly appreciated.

Re: upload mp3 to media manager---how?

Posted: Sat Sep 16, 2006 1:48 pm
by JAF Site Design
How big was the mp3 file, the file size limits still apply. Even if it is under the limit, if you try to upload a file big enough to cause a timeout (especially in firefox), it will cause the upload to fail.

Re: upload mp3 to media manager---how?

Posted: Sat Sep 16, 2006 2:28 pm
by vbsouthern
Successful upload of large mp3 file to Joomla Media Manager.

After reading through every post in thread after thread I found the answer here:

Topic: Help Needed - Can't Upload m4a,mp3 files to Media Manager
http://forum.joomla.org/index.php/topic,88098.0.html

I do not know if this will work for everyone. My Joomla files are in the root directory and my Web Server is Apache/1.3.27 (Unix) (Red-Hat/Linux) PHP/4.4.2

First I added these lines to my .htaccess file

Code: Select all

php_value memory_limit 32M
php_value post_max_size 16M
php_value upload_max_filesize 16M
php_value max_execution_time  800
Then I edited /administrator/components/com_media/admin.media.php and added support for mp3

Code: Select all

$allowable = array (
'bmp',
'csv',
'doc',
'epg',
'gif',
'ico',
'jpg',
'odg',
'odp',
'ods',
'odt',
'pdf',
'png',
'ppt',
'swf',
'txt',
'xcf',
'xls',
'mp3'
I was able to upload a 12MB mp3 file to the Joomla Media Manager and link to it from a news item.

Re: upload mp3 to media manager---how?

Posted: Tue Sep 19, 2006 12:10 am
by Crush Wilder
You know, I did all the above, too, as far as adding the .mp3 extension, but I still get an error of "File type not supported."  It's showing when I view the source, but still not uploading correctly.  It's only me that's using it, so it's not imperative to have to use Media Manager, since I can upload it directly, but it is a pain in the butt.  Am I missing something?

Re: upload mp3 to media manager---how?

Posted: Tue Sep 19, 2006 5:38 am
by vbsouthern
Is your server using Microsoft or Unix/Linux?  My server is Apache/1.3.27 (Unix) (Red-Hat/Linux) PHP/4.4.2

That may be the difference.

Re: upload mp3 to media manager---how?

Posted: Tue Sep 19, 2006 5:49 am
by Crush Wilder
I've got a Linux server...still looking into this, but it should be working, and it's not.  Frustrating.

Re: upload mp3 to media manager---how?

Posted: Tue Sep 19, 2006 7:13 am
by vbsouthern
Are you using a high speed connection or dial-up with a modem? If you have a slow connection try increasing the execution time.

Code: Select all

php_value max_execution_time  1600

Re: upload mp3 to media manager---how?

Posted: Fri Oct 05, 2007 2:06 pm
by khani124
Can't find this piece of code in admin.media.php for joomla 5.1. Any ideas where i can include file formats for upload in 5.1 rc2. Thanks

Re: upload mp3 to media manager---how?

Posted: Wed Jan 02, 2013 12:29 am
by erinno1
Perhaps this is a dumb question but where do I find that file? Host website?