I am putting a file uploader in my site and it keeps failing at this move_uploaded_file() method. How can I figure out the specific error?
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $upload_path)) {
...
}
else {
// how can I figure out why it failed?
}
Thanks!