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
[EMAIL PROTECTED]
"Fredrik Wahlberg" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]