Codice PHP:
# qwe.php

        <form method="post" action="qwe.php" enctype="multipart/form-data">
            <input type="hidden" name="action" value="upload" />
            <label>Foto 1 :</label>
            <input type="file" name="file1" />
            <input type="submit" value="Carica online" />
            
        </form>
[b]
<?php

$image 
$_FILES['file1'];

switch(
$image['error'])
{
    case 
UPLOAD_ERR_PARTIAL:
    {
        print 
'Errore in fase di caricamento.';
    }
    break;
    
    case 
UPLOAD_ERR_OK:
    {
        if (
$image['size']<50000)
        {
            
move_uploaded_file($image['tmp_name'], 'upload/'.$image['name']);
        }
        else
            print 
'Troppo grande';
    }
}

?>
cosa sbaglio?