aspè... anche così non è correttissimo...
Te nei primi post hai messo questo array:

array (

// archives
'zip' => 'application/zip',

// documents
'pdf' => 'application/pdf',
'doc' => 'application/msword',
'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint',

// executables
'exe' => 'application/octet-stream',

// images
'gif' => 'image/gif',
'png' => 'image/png',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',

// audio
'mp3' => 'audio/mpeg',
'wav' => 'audio/x-wav',

// video
'wmv' => 'video/wmv',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'mov' => 'video/quicktime',
'avi' => 'video/x-msvideo'
);


Dovresti associarlo a qualcosa.. tipo così:


$tipi_di_files = array...

poi quando fai l'header, fai così:

header("Content-Type: ".$tipi_di_files[$file_extension]);

Così è corretto al 100%