ID: 22427 Comment by: c dot neise at gmx dot de Reported By: jroland at uow dot edu dot au Status: No Feedback Bug Type: *General Issues Operating System: Windows XP / 2000 PHP Version: 4.2.3 New Comment:
I have also the first of these problems. The script below reproduces the bug. When entering a small amount of data, the data is displayed. With a large amount of data (e.g. a screen full of letters pasted into the text area) the data is lost. I am using gentoo linux, php 4.3.8 and Apache 2.0.50. If anything is missing please let me know. Best regards, Christian Neise. <html> <body> <form method="POST"> <textarea name="test"> <?php echo $_POST['test']; ?> </textarea> <hr><input type="submit" name="dummy"><hr> <pre> <?php print_r($_POST); ?> </pre> </body> </html> Previous Comments: ------------------------------------------------------------------------ [2004-02-20 08:07:17] vincentfinet at hotmail dot com Hi, Don't know if it helps but I found out that informations about the file uploaded from a form using "multipart/form-data" like in the example below is not in the $_POST array but in the $_FILES array <form enctype="multipart/form-data" method="post" action="WinnyReader.php"> <input type="file" name="fWinnyFile" size="40" /> <input type="submit" value="Go" /> </form> After hitting the submit button, the second script (in my example, "WinnyReader.php") will look for informations about the file in $_FILES["fWinnyFile"] (and not in $_POST["fWinnyFile"] even if the method of the form is POST!!). That will do something like this: if (isset($_FILES["fWinnyFile"])) { $arWinnyFile = $_FILES["fWinnyFile"]; echo "name : " . $arWinnyFile["name"] . "<br />\n"; echo "type : " . $arWinnyFile["type"] . "<br />\n"; echo "tmp_name : " . $arWinnyFile["tmp_name"] . "<br />\n"; echo "error : " . $arWinnyFile["error"] . "<br />\n"; echo "size : " . $arWinnyFile["size"] . "<br />\n"; $stFilename = $arWinnyFile["tmp_name"]; } else { ... } Hope this helps! Vincent FINET ------------------------------------------------------------------------ [2003-12-27 20:28:46] ascj20 at dsl dot pipex dot net On WinXP SP1 / Apache 1.3.27 / PHP 4.2.2(module) / testing locally with IE6 SP1 This bug has changed topic it seems, but on the original matter I have it too - tiny effective limits with $_POST and $_FILES. By echoing getenv(CONTENT_LENGTH) I find a limit of 488 bytes from text-only form data (above which $_POST returns empty). Using HTTP upload by POST the cutoff is about 2.5k for a gif file. (Limit is higher when not using SSL but I guess that is to be expected?) I hope this is a useful contribution to a bug that seems to be taxing a lot of folks. ------------------------------------------------------------------------ [2003-06-05 08:20:19] webmaster at dtshowtime dot lu dot eu dot org I can also reproduce this problem with PHP 4.3.2. ------------------------------------------------------------------------ [2003-05-21 04:52:16] webmaster at dtshowtime dot lu dot eu dot org I am experiencing the same problem under WinXP SP1, Apache 1.3.27, PHP 4.3.1 (installed as Apache Module). In my particular case I tried installing postnuke and got stuck an the license screen (a large textarea) which just won't get submitted using POST. I also experience intermittent POST failures when submitting smaller forms (like the first install screen which only asks to select a language). What is the parameter in httpd.conf that should be checked? I would be glad to assist in getting rid of this as it is very annoying. ------------------------------------------------------------------------ [2003-04-06 06:57:42] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ 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/22427 -- Edit this bug report at http://bugs.php.net/?id=22427&edit=1