upload mp3 to media manager---how?

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
researchtoxic
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Fri Mar 03, 2006 3:52 pm
Location: Macon, GA
Contact:

upload mp3 to media manager---how?

Post by researchtoxic » Sun Apr 30, 2006 4:26 pm

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?
http://www.netentropy.com - Drupal, Joomla and whatever performance.

JAF Site Design
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sun Oct 09, 2005 3:57 pm
Contact:

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

Post by JAF Site Design » Sun Apr 30, 2006 5:31 pm

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'
-Josh Fee, JAF Site Design

View the website as it is created (using Joomla! of course)http://www.jafsitedesign.com

User avatar
researchtoxic
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Fri Mar 03, 2006 3:52 pm
Location: Macon, GA
Contact:

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

Post by researchtoxic » Tue May 02, 2006 2:59 am

awesome thanks!
http://www.netentropy.com - Drupal, Joomla and whatever performance.

User avatar
vbsouthern
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Mon Aug 28, 2006 11:21 pm
Location: Denver, Colorado
Contact:

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

Post by vbsouthern » Sat Sep 16, 2006 3:30 am

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.
With the world population surpassing seven billion humans, remaining Childfree is an educated, rational, modern and well informed choice. The bias Childfree people are subjected to would seem to defy all logic.
http://www.childfreelovers.com/

JAF Site Design
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sun Oct 09, 2005 3:57 pm
Contact:

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

Post by JAF Site Design » Sat Sep 16, 2006 1:48 pm

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.
-Josh Fee, JAF Site Design

View the website as it is created (using Joomla! of course)http://www.jafsitedesign.com

User avatar
vbsouthern
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Mon Aug 28, 2006 11:21 pm
Location: Denver, Colorado
Contact:

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

Post by vbsouthern » Sat Sep 16, 2006 2:28 pm

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.
With the world population surpassing seven billion humans, remaining Childfree is an educated, rational, modern and well informed choice. The bias Childfree people are subjected to would seem to defy all logic.
http://www.childfreelovers.com/

Crush Wilder
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Mar 10, 2006 4:03 am

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

Post by Crush Wilder » Tue Sep 19, 2006 12:10 am

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?

User avatar
vbsouthern
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Mon Aug 28, 2006 11:21 pm
Location: Denver, Colorado
Contact:

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

Post by vbsouthern » Tue Sep 19, 2006 5:38 am

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.
With the world population surpassing seven billion humans, remaining Childfree is an educated, rational, modern and well informed choice. The bias Childfree people are subjected to would seem to defy all logic.
http://www.childfreelovers.com/

Crush Wilder
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Mar 10, 2006 4:03 am

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

Post by Crush Wilder » Tue Sep 19, 2006 5:49 am

I've got a Linux server...still looking into this, but it should be working, and it's not.  Frustrating.

User avatar
vbsouthern
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Mon Aug 28, 2006 11:21 pm
Location: Denver, Colorado
Contact:

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

Post by vbsouthern » Tue Sep 19, 2006 7:13 am

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
With the world population surpassing seven billion humans, remaining Childfree is an educated, rational, modern and well informed choice. The bias Childfree people are subjected to would seem to defy all logic.
http://www.childfreelovers.com/

khani124
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Oct 05, 2007 1:29 pm

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

Post by khani124 » Fri Oct 05, 2007 2:06 pm

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

erinno1
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Aug 27, 2012 6:31 pm

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

Post by erinno1 » Wed Jan 02, 2013 12:29 am

Perhaps this is a dumb question but where do I find that file? Host website?


Locked

Return to “General Questions - 1.0.x”