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";
}
}