Hi frnds i have problem with mp3 file upload with firefox
i used this code for uploading

if($_FILES['mp3file']['type'] == "audio/mpeg")

how ever its only works with IE but its not working with firefox plz tell me what to do?
my all code is this.

$file_name = rand(1000,10000)."_".$_FILES['mp3file']['name'];
$file_title = $_POST['audio_title'];
$file_disc = $_POST['audio_detail'];
$target = "./upload/".$file_name;
if(count($_POST['active']>0))
{
if($_FILES['mp3file']['type'] == "audio/mpeg")
{
    move_uploaded_file($_FILES['mp3file']['tmp_name'], $target);
    echo "success";
}
else{
    echo "error";
}
}
Member Avatar for diafol

Are you using an old version of FF, e.g. 3.6? If so, it has MIME issues, so upgrade to newer version.

my FF 9.0.1 and i hve clicked to update its says your version is up to date
with IE the above code work fine but in FF not workin i have fount this code on other forum that someone told its for FF but still this code not workin
$_FILES == "application/force-download"

Okey thanks! the problem is solved out!

Member Avatar for diafol

OK, mark the thread solved and tell us how it was solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.