Hello,
i made a download script as:
<?
$file_name = $_FILES['uploadFile1']['name'];
// strip file_name of slashes
$file_name = stripslashes($file_name);
$file_name = str_replace("'","",$file_name);
$copy = copy($_FILES['uploadFile1']['tmp_name'],$file_name);
$copy=move_uploaded_file($_FILES['uploadFile1']['tmp_name'],"../Data/");
// check if successfully copied
if($copy){
echo "$file_name uploaded sucessfully!
";
}else{
echo "$file_name could not be uploaded!
";
}
?>
now i want to change the destination directory and restrict file types too how shall i do that ?
Configuration: Windows XP
Internet Explorer 7.0