[Q] php upload NOT working?

Dear all,
I have grabbed a PHP upload source from web, however some poblem occur
[LIST]
[]The destinated directory has been granted for the READ/WRITE premission
to EVERYONE, IUSR_MACHINE, IWAN_MACHINE
[
]computer Management > Internet Information Services > web sites > default Web site > MySite > Uploads > Properties > directorythe box of “Write” is checked[/LIST]The file is uploaded correctly to the PHP temporary directory,
Because i can see that there is a file comes up when a large file is being uploaded and disapear after the upload completed

However, it seems cannot move the file from temporary directory to the destinated folder successfully.

[COLOR=darkorange]It just prints out “There was an error uploading the file, please try again!”[/COLOR]
[COLOR=darkorange]and [/COLOR]

[COLOR=darkorange]"Array ( [uploadedfile] => Array ( [name] => a.avi [type] => [tmp_name] => [error] => 2 [size] => 0 ) ) "[/COLOR]

Any people can help ??

Thanks

<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
 
<?php 
$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!";
}
print_r($_FILES);
?>