From:             jnixon at postregister dot com
Operating system: Linux
PHP version:      4.3.3
PHP Bug Type:     Apache2 related
Bug description:  File upload wont work if spaces not in the right place.

Description:
------------
I'm new at sending out these things, so please be patient.
The problem I am having is with the file upload in apache 2.0.45, and
mod_php 4.3.3

Works fine under *nix, it is the Microsoft Windows people I'm having the
problems with.

I bereave it has to do with the spaces in the name.

If the name of the file has no spaces, than the location must not have any
spaces.

If the name of the file has a space or more in the name then the location
doesn't matter.

Examples:
Does not work: C:\Documents and Settings\username\Desktop\image.jpg

Works: C:\Documents and Settings\username\Desktop\image name.jpg
Works: C:\image name.jpg
Works: C:\image.jpg
Works: C:\images\imagename.jpg

I'm tying to upload a file using.
<form ENCTYPE="multipart/form-data" action="extra.php" method="POST">
 Upload an image: <input name="userfile" type="file" size="100">
 <input type="submit" value="Send File">
</form>

If the file looks like this:
   C:\Documents and Settings\username\Desktop\image.jpg

I have submited an bug report with apache and they said it was not a
problem with apache.

Reproduce code:
---------------
<form ENCTYPE="multipart/form-data" action="extra.php" method="POST">
 Upload an image: <input name="userfile" type="file" size="100">
 <input type="submit" value="Send File">
</form>

Expected result:
----------------
Netscape gives an error of "The document contains no data".
In IE I get the page cannot be displayed error.



-- 
Edit bug report at http://bugs.php.net/?id=26326&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26326&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26326&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26326&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26326&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26326&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26326&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26326&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26326&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26326&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26326&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26326&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26326&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26326&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26326&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26326&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26326&r=float

Reply via email to