The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sun Apr 30, 2006 4:26 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Mar 03, 2006 3:52 pm
Posts: 1023
Location: Macon, GA
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.


Top
 Profile  
 
PostPosted: Sun Apr 30, 2006 5:31 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Sun Oct 09, 2005 3:57 pm
Posts: 402
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:
         '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:
         '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


Top
 Profile  
 
PostPosted: Tue May 02, 2006 2:59 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Mar 03, 2006 3:52 pm
Posts: 1023
Location: Macon, GA
awesome thanks!

_________________
http://www.netentropy.com - Drupal, Joomla and whatever performance.


Top
 Profile  
 
PostPosted: Sat Sep 16, 2006 3:30 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Aug 28, 2006 11:21 pm
Posts: 59
Location: Denver, Colorado
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/


Top
 Profile  
 
PostPosted: Sat Sep 16, 2006 1:48 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Sun Oct 09, 2005 3:57 pm
Posts: 402
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


Top
 Profile  
 
PostPosted: Sat Sep 16, 2006 2:28 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Aug 28, 2006 11:21 pm
Posts: 59
Location: Denver, Colorado
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:
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:
$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/


Top
 Profile  
 
PostPosted: Tue Sep 19, 2006 12:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 10, 2006 4:03 am
Posts: 43
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?


Top
 Profile  
 
PostPosted: Tue Sep 19, 2006 5:38 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Aug 28, 2006 11:21 pm
Posts: 59
Location: Denver, Colorado
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/


Top
 Profile  
 
PostPosted: Tue Sep 19, 2006 5:49 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 10, 2006 4:03 am
Posts: 43
I've got a Linux server...still looking into this, but it should be working, and it's not.  Frustrating.


Top
 Profile  
 
PostPosted: Tue Sep 19, 2006 7:13 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Aug 28, 2006 11:21 pm
Posts: 59
Location: Denver, Colorado
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:
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/


Top
 Profile  
 
PostPosted: Fri Oct 05, 2007 2:06 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Oct 05, 2007 1:29 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 12:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 27, 2012 6:31 pm
Posts: 19
Perhaps this is a dumb question but where do I find that file? Host website?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group