From: chenlailin at gmail dot com Operating system: WindowXP SP2 PHP version: 5.1.6 PHP Bug Type: HTTP related Bug description: Upload failed with file name like {1E0557DF-2797-4E31-9908-81722ABCED19}0.jpg
Description: ------------ upload photo with the name {1E0557DF-2797-4E31-9908-81722ABCED19}0.jpg It won't work, rename it to xxxxx.jpg, It works. Here is the code I used: $uploadFileWithoutPath = "photos".basename($_FILES['PhotoUpload']['name']); $uploadFileWithoutPath = urlencode($uploadFileWithoutPath); $uploaddir = $PhotoDir; $uploadfile = $uploaddir . $uploadFileWithoutPath; $uploadfile = sprintf($uploadfile,time()); $requestValid = true; $fileSize = $_FILES['PhotoUpload']['size']; if($fileSize > 1000000) { $requestValid = false; } if (move_uploaded_file($_FILES['PhotoUpload']['tmp_name'], $uploadfile)) { //do my stuff here....... Reproduce code: --------------- http://lab.mytalentexchange.com/ Click a location, and click "add marker" link, try to upload a photo with the name {1E0557DF-2797-4E31-9908-81722ABCED19}0.jpg It won't upload the photo, now rename it to xxxxx.jpg, It works. -- Edit bug report at http://bugs.php.net/?id=39288&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39288&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39288&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39288&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39288&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39288&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39288&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39288&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39288&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39288&r=support Expected behavior: http://bugs.php.net/fix.php?id=39288&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39288&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39288&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39288&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39288&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39288&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39288&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39288&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39288&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39288&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39288&r=mysqlcfg