Hi mhpeters,
I know what is the problem now.
When you use method "MoveTo", it will delete the temp file from the temp folder, and you have the "Delete" method after it, this is why get this problem. So just need to delete code $mvcfile->Delete();, it will work
$mvcfile->MoveTo("D:/Hosting/3380894/html".$pathname);
$mvcfile->Delete();
Regards,
Ken