<?php
$target_dir ="uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file))
{
//echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
} else
{
echo "Sorry, there was an error uploading your file.";
}
I am trying to upload image's through a web page...but it's not working