I am getting no result of it when i choose mp3 file. Other files are being uploade.. What should I do?

echo $ftype=$_FILES["audio"]["type"]; exit;

ensure that you are not exceeding your max upload size. You can update the following values on your php.ini file:
upload_max_filesize
post_max_size

Or if you don't have access to php.ini, you can also do this with .htaccess.

If you are sure that this is not the case start off with a simple test for and then output the contents of the $_FILES array like so

<?php echo "<pre>" . print_r($_FILES, true) . "</pre>"; ?>

Also, I never go with "type" in the $_FILES array anyway since, I believe, that this information is provided by the header and therefor can be manipulated or can vary with browsers.

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.