[RESOLVED] File Upload
Hi i can't seem to get this code to work, i've tried numerous scripts online, i'm new to php(more familiar with asp.net) and i'm developing a website for a friend.
I keep on getting error: undefined index at line.....
<form action="getfile.php" method="post" enctype="multipart/form-data>
<input type="file" name="uploadedFile" >
<input type="submit" value="Upload File">
if( $_FILES['uploadedFile']['name'] != "" )
copy( $_FILES['uploadedFile']['name'], "uploads/" ) or
die( "Could not copy file!");
die("No file specified!");