The file is echoed correctly on the echo statement before
The uploaded file was to: images/smoker1.jpg and size was 10110
Here's the code:
if ( $_POST['upLoad']){
$path= "images/".$_FILES['myfile']['name'];
$echo "The uploaded file was to: $path and size was ".$_FILES['myfile']['size'] ;
move_uploaded_file($_FILES['myfile']['name'],"$path");
$F =$_SESSION['currentPage']; //load current page again
}
When I use FTP to check for the file in the directory images/ the file smoker1.jpg is not there.
Why ? There are no errors coming from PHP when the upload button is pressed.
Any help in this appreciated.
print_r($_FILES)