I think you first need to do something so that $file will know what $_POST['file'] is...
Haven't coded PHP for a while, I could be wrong
By the way, I think it's not simply using copy function, you need something else to reach the uploaded file temporarily stored somewhere on the server., ah, I retract, perhaps you just forgot $file=$_POST['file']
Take a look at
http://www.php.net/manual/en/features.file-upload...upload.post-method