php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3053 upload_type is not set
Submitted: 1999-12-27 16:38 UTC Modified: 2002-10-01 10:58 UTC
From: martin dot dahlberg at mbox303 dot swipnet dot se Assigned:
Status: Wont fix Package: Misbehaving function
PHP Version: 3.0.12 OS: Linux 2.2.12-20 Redhat 6.1
Private report: No CVE-ID: None
 [1999-12-27 16:38 UTC] martin dot dahlberg at mbox303 dot swipnet dot se
The _type variable for File upload is not set.
I use Netscape Communicator 4.61.

The php-file:
<html><head></head>
<body>
<form method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
<input type="file" name="single">
<?
  phpinfo();
?>
<input type="submit">
</form>
</body>
</html>



I have verified that the 'Content-Type: '-header is provided by
netscape, using action="printenv":

Output from printenv:

SERVER_SOFTWARE=Apache/1.3.9 (Unix) (Red Hat/Linux) PHP/3.0.12
GATEWAY_INTERFACE=CGI/1.1
DOCUMENT_ROOT=/home/httpd/html
REMOTE_ADDR=127.0.0.1
SERVER_PROTOCOL=HTTP/1.0
REQUEST_METHOD=POST
QUERY_STRING=
HTTP_USER_AGENT=Mozilla/4.61 [en] (X11; I; Linux 2.2.12-20 i686)
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HTTP_CONNECTION=Keep-Alive
REMOTE_PORT=1279
SERVER_ADDR=127.0.0.1
CONTENT_TYPE=multipart/form-data;
boundary=---------------------------125557601387872961105811452
CONTENT_LENGTH=401
SERVER_ADMIN=root@localhost

POSTDATA:

-----------------------------125557601387872961105811452
Content-Disposition: form-data; name="MAX_FILE_SIZE"

100000
-----------------------------125557601387872961105811452
Content-Disposition: form-data; name="single"; filename="test.html"
Content-Type: text/html

Test

-----------------------------125557601387872961105811452--

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 10:58 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.  Momentum is
gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of
resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will
will continue to be supported for the forseeable future.

file upload has been completely rewritten for php 4.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 10:01:27 2024 UTC