#34438 [NEW]: $_FILES problem

From: Date: Fri, 09 Sep 2005 09:34:41 +0000
Subject: #34438 [NEW]: $_FILES problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84785@lists.php.net to get a copy of this message
From: schoolgal_hk at yahoo dot com Operating system: Window 2000 PHP version: 5.0.5 PHP Bug Type: Performance problem Bug description: $_FILES problem Description: ------------ I use $_FILES['file']['type'] to check the type of a MICROSOFT WORD file while editing it by Microsoft word. $_FILES['file']['type'] return the type : application/octet-stream However, when I finish editing and close the Microsoft Word application. $_FILES['file']['type'] can now return the correct type: application/msword I am now sure whether this is a feature or bug. Reproduce code: --------------- $_FILES['file']['type']; echo "File type :".$_FILES['file']['type']; Expected result: ---------------- File type :application/msword Actual result: -------------- File type :application/octet-stream -- Edit bug report at http://bugs.php.net/?id=34438&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34438&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34438&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34438&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34438&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34438&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34438&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34438&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34438&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34438&r=support Expected behavior: http://bugs.php.net/fix.php?id=34438&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34438&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34438&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34438&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34438&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34438&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34438&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34438&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34438&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34438&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34438&r=mysqlcfg

« previous php.bugs (#84785) next »