From: xfuture00 at hotmail dot com Operating system: WINXP_PRO PHP version: 5.1.1 PHP Bug Type: Filesystem function related Bug description: FILENAME PROBLEM
Description: ------------ Well... I try to search around the solution for this problem.. no matter Advanced search in bugs.php.net or google... I found $_FILES unable to get files with space between the filename like "ab c.txt" or "my files.txt" Reproduce code: --------------- My Form: <form method="POST" enctype="multipart/form-data" action="xxx.php"; ?>" name='addfileform'> <input type="file" name="filename" size="64" maxlength="255" class="" > My PHP: $myFile = $_FILES['filename']; $source_file = $myFile['tmp_name']; $destination_file = "**some location**"; $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); Expected result: ---------------- I expect the upload can be successfully as the file that WITHOUT space between the file name... Actual result: -------------- the result return filename is an Undefined Index.. -- Edit bug report at http://bugs.php.net/?id=35883&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35883&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35883&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35883&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35883&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35883&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35883&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35883&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35883&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35883&r=support Expected behavior: http://bugs.php.net/fix.php?id=35883&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35883&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35883&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35883&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35883&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35883&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35883&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35883&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35883&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35883&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35883&r=mysqlcfg
