Author Topic: Mp3 Uploading Problem  (Read 18171 times)

0 Members and 1 Guest are viewing this topic.

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Mp3 Uploading Problem
« 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
Digital Marketing Specialist

Offline AKIN

  • Full Member
  • ***
  • Posts: 121
    • View Profile
    • Resim
Re: Mp3 Uploading Problem
« Reply #1 on: October 17, 2009, 05:51:16 PM »
go to admin panel..
Valid file extensions:  add
mp3

Rembrandt

  • Guest
Re: Mp3 Uploading Problem
« Reply #2 on: October 17, 2009, 05:55:27 PM »

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: Mp3 Uploading Problem
« Reply #3 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..
Digital Marketing Specialist

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Mp3 Uploading Problem
« Reply #4 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: Mp3 Uploading Problem
« Reply #5 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");
?>
Digital Marketing Specialist

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Mp3 Uploading Problem
« Reply #6 on: October 21, 2009, 10:14:39 AM »
... you should read V@no's thread that rembrandt has already pointed ... right ... !
... there is the solution of your problems ...
... add after  ,"video/x-mpeg" this , "audio/mp" ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: Mp3 Uploading Problem
« Reply #7 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!
Digital Marketing Specialist

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Mp3 Uploading Problem
« Reply #8 on: October 22, 2009, 12:12:29 PM »
... and again ...
... you should read V@no's thread that rembrandt has already pointed ... right ... !
... and now add after , "audio/mp" this  ,"application/force-download" ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Ralf_Werner_Gartenmost

  • Spam suspect
  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Mp3 Uploading Problem
« Reply #9 on: October 22, 2009, 10:35:58 PM »
Same problem over here :(

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Mp3 Uploading Problem
« Reply #10 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 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: Mp3 Uploading Problem
« Reply #11 on: October 23, 2009, 07:06:45 PM »
but sir i already share my Mime-type file...
if need any updation point out me..
Digital Marketing Specialist

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Mp3 Uploading Problem
« Reply #12 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");
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: Mp3 Uploading Problem
« Reply #13 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
Digital Marketing Specialist