<?php
if($_FILES["file"]["error"]>0)
{
echo "Error".$_FILES["file"]["error"]."<br/>";
}
else
{
echo "Upload File Name: ".$_FILES["file"]["name"]."<br/>";
echo "File Type: ".$_FILES["file"]["type"]."<br/>";
echo "File Size: ".$_FILES["file"]["size"]."<br/>";
echo "File Uploaded Into".$_FILES["file"]["path"]."<br/>";
}
if(file_exists("upload/image".$_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"]."File Already Exists";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],"upload/image/".$_FILES["file"]["name"]);
}
?>
if($_FILES["file"]["error"]>0)
{
echo "Error".$_FILES["file"]["error"]."<br/>";
}
else
{
echo "Upload File Name: ".$_FILES["file"]["name"]."<br/>";
echo "File Type: ".$_FILES["file"]["type"]."<br/>";
echo "File Size: ".$_FILES["file"]["size"]."<br/>";
echo "File Uploaded Into".$_FILES["file"]["path"]."<br/>";
}
if(file_exists("upload/image".$_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"]."File Already Exists";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],"upload/image/".$_FILES["file"]["name"]);
}
?>
0 comments:
Post a Comment