Re: File type not set

From: Date: Thu, 01 Mar 2001 14:30:11 +0000
Subject: Re: File type not set
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42187@lists.php.net to get a copy of this message
I find depending on the browser the mime-type is not allways set or correct. I like to double check it before I save the type in my db. I find alot of the time my type is set to application/octlet-stream meaning it knows its binary data, just the browser didnt know what kind. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 lee@mediawaveonline.com "Fredrik Wahlberg" <fredrik@fusage.com> wrote in message news:20010301.10131437@mis.configured.host... I'm uploading a file to my server, and I check the mime-type and file size before saving it. For some reason I get the file size, but not the file type. $userfile_type returns nothing and $userfile_size returns the correct size. This works just fine on another server where I have the same script so the problem is not in the browser. I'm running RedHat 7.0 with PHP rpm php-4.0.4pl1-3 Bug, feature or my fault? /Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#42187) next »