I want 2 upload files with extensions .wma or else. If it is not a video file , it will give an alert.
Check the config.php and please add more details to your post. It almost makes no sense. -Howlinghawk
I think you are talking about uploading file in php. You can get the extension of the file by using this function: function getextension ($filename) { $filename = strtolower($filename) ; $exts = split("[/\\.]", $filename) ; $n = count($exts)-1; $exts = $exts[$n]; return $exts; } Code (markup): Then you can check whether its mpg or wma etc or not.