Mi ritrovo in una situazione di dubbio:
codice:
<form enctype="multipart/form-data" action="testupload.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" />

<input type="submit" value="Upload File" />
</form>
pagina di upload
codice:
<?php
$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

echo "<pre>";
print_r($_FILES);

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!";
}

?>
ottengo un errore 8 che è UPLOAD_ERR_EXTENSION
qualcuno sa cosa diamine sia ?
Lo script è sulla root, la cartella upload ha i permessi di scrittura 777.


Array
(
[uploadedfile] => Array
(
[name] => miafoto.jpg
[type] =>
[tmp_name] =>
[error] => 8
[size] => 0
)

)