0

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";
}
}
2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by diafol
0

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

0

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"

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.