$registered_types = array(
"application/x-gzip-compressed" => ".tar.gz, .tgz",
"application/x-zip-compressed" => ".zip, .rar",
"application/x-tar" => ".tar",
"text/plain" => ".html, .php, .txt, .inc (etc)",
"image/bmp" => ".bmp, .ico",
"image/gif" => ".gif",
"image/pjpeg" => ".jpg, .jpeg",
"image/jpeg" => ".jpg, .jpeg",
"application/x-shockwave-flash" => ".swf",
"application/msword" => ".doc",
"application/vnd.ms-excel" => ".xls",
"application/octet-stream" => ".exe, .fla (etc)",
"fichier/acrobat" => ".pdf"
);
//$allowed_types = array("image/bmp","image/gif","image/pjpeg","image/jpeg");
$allowed_types = array("image/bmp","image/gif","image/pjpeg","image/jpeg","application/x-gzip-compressed","application/x-zip-compressed","application/x-tar","text/plain","application/msword","application/x-shockwave-flash","application/vnd.ms-excel","application/octet-stream","fichier/acrobat");