Bug #3053: upload_type is not set
| From: | martin dot dahlberg at mbox303 dot swipnet dot se | Date: | Mon, 27 Dec 1999 21:38:39 +0000 |
| Subject: | Bug #3053: upload_type is not set | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14069@lists.php.net to get a copy of this message | ||
From: martin.dahlberg@mbox303.swipnet.se
Operating system: Linux 2.2.12-20 Redhat 6.1
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: upload_type is not set
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--