Bug #16001 Updated: File-Upload's mime-type in Opera

From: Date: Mon, 11 Mar 2002 18:42:50 +0000
Subject: Bug #16001 Updated: File-Upload's mime-type in Opera
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2242@lists.php.net to get a copy of this message
ID: 16001 Updated by: sniper@php.net Reported By: spot@ihastus.net -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.2 New Comment: This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2002-03-11 13:40:16] spot@ihastus.net 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 this bug report at http://bugs.php.net/?id=16001&edit=1

« previous php.bugs (#2242) next »