php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7130 HTTP file upload fails when the filename contains a space
Submitted: 2000-10-11 03:42 UTC Modified: 2000-11-29 06:17 UTC
From: sybren dot stuvel at wellance dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.2 OS: Linux 2.2.14-5.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sybren dot stuvel at wellance dot com
New email:
PHP Version: OS:

 

 [2000-10-11 03:42 UTC] sybren dot stuvel at wellance dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 11:22 UTC] stas@php.net
please provide a short script reproducing this behaviour
 [2000-11-29 06:17 UTC] stas@php.net
no feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 15:01:29 2024 UTC