I have a very basic upload script, probably lifted straight off the php.net/move_upload_files function page.
move_uploaded_file() is failed because it canno
move_uploaded_file()
Simple test to do right before the move_uploaded_file() function:
if (!file_exists("upload")) { if (mkdir("upload")) { echo "Upload directory created!"; } else { die( "Invalid upload directory!" ); } } move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);