What's the syntax you're using?
I've never tried to use move_uploaded_file. The docs seem to indicate you would use:
move_uploaded_file($userfile, 'id90.jpg');
I've used something like this:
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name']))
{
$userfile = $HTTP_POST_FILES['userfile']['name'];
if ($HTTP_POST_FILES['userfile']['size'] > $MAX_FILE_SIZE)
{
echo "File too big. Max size is $MAX_FILE_SIZE bytes<br>";
}
else
{
// massage the name all you like here
$userfile = preg_replace("/\s*/", "", $userfile);
copy($HTTP_POST_FILES['userfile']['tmp_name'], "$filepath/$userfile");
}
}