Any ideas why this isn't working? I've used it many times before. I have a folder called 'uploads' in the same directory
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['file']['name']);
if(! move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
$error = 1;
}
The file input form seems to be working, as when i echo out $_POST['file']; the file name is correct
Thanks