Ok so I have my html form that uploads something. Here's my PHP code: $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } Code (markup): Couple things. Could I set this variable: $filename = " . basename( $_FILES['uploadedfile']['name']) ." to display my file name? Also, every time I upload it gives me the error uploading the file. I've set the directory to 777, and all but I'm kinda clueless as to why I'm not able to upload files. Thanks