hi, i am a begineer in php, i have written the below code to upload all file type except executable file (.exe file), but whenever i run it in web browser like mozzila it works for me but whenever i try it in google chrome it does not work i mean even .exe files too get uploaded..
upload.php file
<?php
//print_r($_FILES);
if(is_uploaded_file($_FILES['f1']['tmp_name']))
{
$fname=$_FILES['f1']['name'];
echo $fname;
}
$type=$_FILES['f1']['type'];
echo $type;
if($type=="application/octet-stream")
{
echo "not support";
}
else
if(move_uploaded_file($_FILES['f1']['tmp_name'],"kk/$fname"))
{
echo"file is moved";
}
else
{
echo"not";
}
?>
select.html file
<form method="POST" action="upload.php" enctype="multipart/form-data">
Selectfile:<input name="f1" type="file">
<br>
<input type='submit' name='sub' value='upload'>
</form>
pls can any body help me with this problem..