The move_uploaded_file() function assumes the file is stored in the directory specified by the upload_tmp_dir configuration directive.
processes the file uploaded in the example described in
<?php if(is_uploaded_file($_FILES['myfile']['tmp_name'])) { move_uploaded_file($_FILES['myfile']['tmp_name'], "/path/to/dir/newname"); }?>
No comment posted