recognising plain text files

From: Date: Thu, 16 May 2002 15:24:21 +0000
Subject: recognising plain text files
Groups: php.general 
Request: Send a blank email to php-general+get-97921@lists.php.net to get a copy of this message
Hi, I am doing some validation on files that are being upload. I only wish to allow users to upload files that are in *plain text* format (not neccessarily with a .txt extension). I have the following piece of code, which works fine in IE, but in Netscape Navigator: if ($file_type != "text/plain") ... error handling... Can anyone explain the reason for this, or offer a better solution? Thanks, Lee

« previous php.general (#97921) next »