#17958 [Com]: <input type=file> loses $_POST vars
| From: | harry at ilo dot de | Date: | Fri, 10 Jan 2003 17:06:35 +0000 |
| Subject: | #17958 [Com]: <input type=file> loses $_POST vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29692@lists.php.net to get a copy of this message | ||
ID: 17958
Comment by: harry@ilo.de
Reported By: ddp@deakin.edu.au
Status: Closed
Bug Type: Apache2 related
Operating System: Linux 2.4.18
PHP Version: 4.2.3
New Comment:
I'm sorry, the bug still appears with PHP 4.3.0.
---
System Windows NT localhost 5.1 build 2600
Build Date Dec 27 2002 05:28:00
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Apache Version Apache/1.3.24
Apache Release 10324100
Apache API Version 19990320
SERVER_SOFTWARE Apache/1.3.23 (Win32) PHP/4.3.0 mod_gzip/1.3.19.1a
mod_ssl/2.8.6 OpenSSL/0.9.6c
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461;
.NET CLR 1.0.3705)
---
It doesn't matter if I use Mozilla instead.
Previous Comments:
------------------------------------------------------------------------
[2002-12-29 05:03:53] derick@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
------------------------------------------------------------------------
[2002-12-28 19:17:07] mati@poczta.pl
When I change in (php.ini) register_globals = On
and restart Apache everythings looks to work OK
Ps. Sorry - my english is terrible but I want help :)
------------------------------------------------------------------------
[2002-12-23 12:07:30] harry@ilo.de
@sorry@aol.com
No, it doesn't.
The problem is that the whole $_POST-Array is empty if the data is
submited as multipart/form-data.
------------------------------------------------------------------------
[2002-12-12 21:27:38] sorry@aol.com
Use $_FILES to access the the file specs. Use $_POST for all others.
-----taken from phpinfo()----------------------
$_POST["user"] (gives me) ryan
$_FILES["userfile"] (gives me)
Array
(
[name] => Test.class
[type] => application/octet-stream
[tmp_name] => /tmp/phpyXUyr7
[error] => 0
[size] => 444
)
----------------------------
PHP Version 4.2.2
Apache/1.3.12
Hope this helps
------------------------------------------------------------------------
[2002-10-14 19:26:51] php-bugs@lists.php.net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17958
--
Edit this bug report at http://bugs.php.net/?id=17958&edit=1