ID:               26326
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jnixon at postregister dot com
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

The extension on the file name would make absolutely no difference (and
I invite you to read RFC 1867 to learn why), but to humor you I'll give
it a shot.

Uploading: C:\Documents and Settings\pollita\Desktop\php_logo.jpg

<?php print_r($_FILES); ?>

array(1) { 
  ["userfile"]=> array(5) { 
    ["name"]=> string(8) "php_logo.jpg" 
    ["type"]=> string(10) "image/jpeg" 
    ["tmp_name"]=> string(14) "/tmp/phpiwC27H" 
    ["error"]=> int(0) 
    ["size"]=> int(1469) 
  } 
}


Something is wrong with your script, or with an assumption you've made
in processing your file.  Please post your question to the generals
mailing list for further assistance.


Previous Comments:
------------------------------------------------------------------------

[2003-12-02 10:23:04] jnixon at postregister dot com

I mean a .jpg.

------------------------------------------------------------------------

[2003-12-02 10:21:09] jnixon at postregister dot com

Try the same test whith an image.

------------------------------------------------------------------------

[2003-11-20 19:54:52] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

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

Reply via email to