4images Forum & Community

General / Allgemeines => Chit Chat => Topic started by: chamkani.net on October 17, 2009, 05:12:19 PM

Title: Mp3 Uploading Problem
Post by: chamkani.net on October 17, 2009, 05:12:19 PM
Dear All I Visit All Threads In Site But Did't Got A Satisfactory Ans..

I use 4images from Pre 2 years, my site is in top listed mp3 tones, i am very thank full of 4images.
now there is somewhat problem in my hosting but i solved it. So when i upload a new mp3 tones to my directory it show..

Error uploading image file: New_Tonne_2010.mp3
New_Tonne_2010.mp3: Invalid file type (mp3, audio/mp)

No database entry!



What's the problem??
Safe Mode?? Or Other Issue>

Site Address : http://chamkani.net/tones
Title: Re: Mp3 Uploading Problem
Post by: AKIN on October 17, 2009, 05:51:16 PM
go to admin panel..
Valid file extensions:  add
mp3
Title: Re: Mp3 Uploading Problem
Post by: Rembrandt on October 17, 2009, 05:55:27 PM
..
New_Tonne_2010.mp3: Invalid file type (mp3, audio/mp)....

Perhaps this
http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249

mfg Andi
Title: Re: Mp3 Uploading Problem
Post by: chamkani.net on October 20, 2009, 06:54:08 AM
Extension already define in setting..

i also update mime-types with new one in mp3 but in vain.
nothing changed. again the same error.
is there any problem of file/directory permissions.
plz identify me the file and directory by default when 4images installation occur to be writable..
Title: Re: Mp3 Uploading Problem
Post by: V@no on October 20, 2009, 07:15:44 AM
and what mime type you added? (please show entire line, or better yet, attach your upload_definitions.php file.
Title: Re: Mp3 Uploading Problem
Post by: chamkani.net on October 21, 2009, 05:50:26 AM
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: upload_definitions.php                               *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

$mime_type_match['jpg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpg", "image/jpeg", "image/pjpeg");

$mime_type_match['gif'] = array("image/gif");

$mime_type_match['png'] = array("image/png", "image/x-png");

$mime_type_match['tif'] = array("image/tiff", "application/octet-stream");
$mime_type_match['tiff'] = array("image/tiff", "application/octet-stream");

$mime_type_match['bmp'] = array("image/bmp", "image/x-ms-bmp");

$mime_type_match['aif'] = array("audio/x-aiff");

$mime_type_match['aiff'] = array("audio/x-aiff");

$mime_type_match['au'] = array("audio/basic");

$mime_type_match['snd'] = array("audio/basic");

$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");

$mime_type_match['mp3'] = array("video/mpeg", "audio/mp3", "audio/mpeg", "audio/mpeg3", "audio/mpg", "audio/x-mpeg", "audio/x-mpeg-3", "video/x-mpeg");

$mime_type_match['ra'] = array("audio/x-pn-realaudio");

$mime_type_match['ram'] = array("audio/x-pn-realaudio");

$mime_type_match['rm'] = array("audio/vnd.rn-realmedia", "application/vnd.rn-realmedia", "video/vnd.rn-realvideo", "application/vnd");

$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");

$mime_type_match['wav'] = array("audio/x-wav");

$mime_type_match['avi'] = array("video/x-msvideo", "video/avi");

$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");

$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");

$mime_type_match['swf'] = array("application/x-shockwave-flash");

$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");

$mime_type_match['gz'] = array("application/gzip", "application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip", "application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");

$mime_type_match['pdf'] = array("application/pdf", "application/x-pdf");

$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");

$mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");
$mime_type_match['rtf'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['rtx'] = array("text/plain", "text/richtext", "text/rtf");

$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd", "application/x-msexcel");
$mime_type_match['ppt'] = array("application/vnd");

$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");
?>
Title: Re: Mp3 Uploading Problem
Post by: mawenzi on October 21, 2009, 10:14:39 AM
... you should read V@no's thread (http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249) that rembrandt has already pointed ... right ... !
... there is the solution of your problems ...
... add after  ,"video/x-mpeg" this , "audio/mp" ...
Title: Re: Mp3 Uploading Problem
Post by: chamkani.net on October 22, 2009, 11:37:41 AM
i add ,"audio/mp"

but got this error

Error uploading image file: New_Tonne_2010.mp3
New_Tonne_2010.mp3: Invalid file type (mp3, application/force-download)

No database entry!
Title: Re: Mp3 Uploading Problem
Post by: mawenzi on October 22, 2009, 12:12:29 PM
... and again ...
... you should read V@no's thread (http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249) that rembrandt has already pointed ... right ... !
... and now add after , "audio/mp" this  ,"application/force-download" ...
Title: Re: Mp3 Uploading Problem
Post by: Ralf_Werner_Gartenmost on October 22, 2009, 10:35:58 PM
Same problem over here :(
Title: Re: Mp3 Uploading Problem
Post by: mawenzi on October 22, 2009, 10:45:29 PM
... same answer : the solution is to find here ... http://www.4homepages.de/forum/index.php?topic=7277.0 ...
... and please read careful ...
Title: Re: Mp3 Uploading Problem
Post by: chamkani.net on October 23, 2009, 07:06:45 PM
but sir i already share my Mime-type file...
if need any updation point out me..
Title: Re: Mp3 Uploading Problem
Post by: mawenzi on October 23, 2009, 07:54:22 PM
... is this now your actual mime-type for mp3 ...  ?
Code: [Select]
$mime_type_match['mp3'] = array("video/mpeg", "audio/mp3", "audio/mpeg", "audio/mpeg3", "audio/mpg", "audio/x-mpeg", "audio/x-mpeg-3", "video/x-mpeg", "audio/mp", "application/force-download");
Title: Re: Mp3 Uploading Problem
Post by: chamkani.net on October 31, 2009, 04:47:25 PM
... is this now your actual mime-type for mp3 ...  ?
Code: [Select]
$mime_type_match['mp3'] = array("video/mpeg", "audio/mp3", "audio/mpeg", "audio/mpeg3", "audio/mpg", "audio/x-mpeg", "audio/x-mpeg-3", "video/x-mpeg", "audio/mp", "application/force-download");


Thats Brilliant Sir, Problem Solved.... :D