#26326 [Bgs]: File upload wont work if spaces not in the right place.

From: Date: Tue, 02 Dec 2003 15:21:09 +0000
Subject: #26326 [Bgs]: File upload wont work if spaces not in the right place.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51567@lists.php.net to get a copy of this message
ID: 26326 User updated by: jnixon at postregister dot com Reported By: jnixon at postregister dot com Status: Bogus Bug Type: Apache2 related Operating System: Linux PHP Version: 4.3.3 New Comment: Try the same test whith an image. Previous Comments: ------------------------------------------------------------------------ [2003-11-20 19:54:52] pollita@php.net Actually ilia, your test case doesn't match his bug report, but I did a test case which did: Uploaded a file from C:\Documents and Settings\pollita\Desktop\test.png I got exactly what I'd have expected from the form. array(1) { ["userfile"]=> array(5) { ["name"]=> string(8) "test.png" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(14) "/tmp/phpuuE33H" ["error"]=> int(0) ["size"]=> int(11) } } ------------------------------------------------------------------------ [2003-11-20 19:28:20] iliaa@php.net Works just fine, I've uploaded "a b.html" and it worked perfectly. ------------------------------------------------------------------------ [2003-11-20 10:06:43] jnixon at postregister dot com I created a simplified version with the code you wanted. Here are the links, with the source. http://www.postregister.com/uploadimage/index.php http://www.postregister.com/uploadimage/index.phps I got the same results. ------------------------------------------------------------------------ [2003-11-19 19:33:51] sniper@php.net Replace that script with this: <?php var_dump($_FILES); ?> And post the output here (when you upload the problem file to it) ------------------------------------------------------------------------ [2003-11-19 18:38:22] sniper@php.net And what exactly do you have in the extra.php script?? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26326 -- Edit this bug report at http://bugs.php.net/?id=26326&edit=1

« previous php.bugs (#51567) next »