PHP 4.0 Bug #7130: HTTP file upload fails when the filename contains a space
| From: | sybren dot stuvel at wellance dot com | Date: | Wed, 11 Oct 2000 07:42:06 +0000 |
| Subject: | PHP 4.0 Bug #7130: HTTP file upload fails when the filename contains a space | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34644@lists.php.net to get a copy of this message | ||
From: sybren.stuvel@wellance.com
Operating system: Linux 2.2.14-5.0
PHP version: 4.0.2
PHP Bug Type: HTTP related
Bug description: HTTP file upload fails when the filename contains a space
When using HTTP upload, as described in the online PHP manual, things go wrong when I try to upload
a file that contains spaces. All PHP works fine, except for this. Assuming you uploaded a file
called "with spaces.txt", the following variables are set:
$somefile = null;
$somefile_name = "with spaces.txt";
$somefile_size = 0;
I compiled PHP using the following configure options:
./configure \
--with-mysql=/opt/mysql \
--enable-track-vars \
--prefix=/opt/php4 \
--with-apxs=/opt/apache/bin/apxs
I use Apache version 1.3.12 in combination with Apache's Tomcat engine version 3.1.
The only PHP specific thing I have in my httpd.conf is this:
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
DirectoryIndex index.html index.jsp index.php index.htm index.cgi
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
php_value upload_max_filesize 20971520
--
Edit Bug report at: http://bugs.php.net/?id=7130&edit=1