From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.2
PHP Bug Type:     Feature/Change Request
Bug description:  File-Upload's mime-type in Opera

There seems to be a problem when getting uploaded file's mime-type. The
problem occurs only with Opera.

The file is uploaded correctly, and then I try to check the uploaded
file's mime-type.

$userfile_type gives:
image/gif; name=\"logo3.gif\"

It should be of cource only "image/gif". And the name should be reported
only in $userfile_name, not in $userfile_type.

So I'll have to write a correction to every my scripts involved with
file-uploads.

Correction I have made:
list ($userfile_type) = split(";", $userfile_type);

I have made an example page for uploading images, which is in the
address:
http://ihastus.net/phpbug/
-- 
Edit bug report at http://bugs.php.net/?id=16001&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16001&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16001&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16001&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16001&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16001&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16001&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16001&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16001&r=submittedtwice

Reply via email to