ID: 26004 Comment by: mondo at mondomx dot com Reported By: jacknorton101 at hotmail dot com Status: No Feedback Bug Type: *General Issues Operating System: RedHat Linux 9 PHP Version: 4.3.3 New Comment:
Been a while since anyone posted. But I am still having this trouble. I have tried all the solutions on the thread and nothing works. PHP Version 5.2.4, Apache 2.2.6 Previous Comments: ------------------------------------------------------------------------ [2007-08-08 15:03:57] marcel at cohnen dot nl I have experienced the problem. The solution provided on this page worked for me. I had a form with a lot of textboxes, and also six fileboxes. Changing the enctypes resulted in either the textboxes working and the fileboxes not working, and vice versa, but no combination so both would work. My max file size in php.ini was set to 64M which should be enough. <form action="test.php" method="post" enctype="multipart/form-data" name="form" id="form"> <input type="hidden" name="MAX_FILE_SIZE" value="50000000"> IMPORTANT: adding the MAX_FILE_SIZE to my form was the solution to the problem. But I discovered a new problem doing this, I had to set the MAX_FILE_SIZE directly under the <form> tag, unlike some other people's examples on this page. Doing this It worked fine for me. for the record, i am running PHP/4.4.7 Apache/1.3.37 on Fedora 5 running kernel 2.6.20-1.2316.fc5smp ------------------------------------------------------------------------ [2007-08-03 22:51:29] m_ellingham at hotmail dot com I had this problem and had to raise realpath_cache_size from 16k to 128k. No problems so far. ------------------------------------------------------------------------ [2007-07-14 16:15:56] mgo dot netmail at gmail dot com Yup, have the same problem with PHP 5.1.6. If someone have a fix for this issue please let me know. I recently update my environment and this is starting to cost me too much time and money. Thanks in advanced. ------------------------------------------------------------------------ [2007-07-03 11:34:35] info at netsilik dot nl Althoug I cannot reproduce the error myself some of my custommers experience the bug described above. And they pop-up in my error-log files When reguesting a page with the POST method and the enctype is set to "multipart/form-data", the $_POST suberglobal is left empty. (Post requests without enctype="multipart/form-data" work fine.) I've recently moved to PHP 5.1.6. The exact same code worked fine for months on the previous version. some php.ini settings (same as previous version): max_execution_time = 60 max_input_time = 120 memory_limit = 24M post_max_size = 8M file_uploads = On upload_max_filesize = 3M The html-form: (the document is valid XHTML 1.0 Transitional) <form action="/gallery/saveFile.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="sessionId" value="0123456789ABCDEF0000000000000000"/> <input type="hidden" name="albumId" value="123"/> <input type="hidden" name="MAX_FILE_SIZE" value="3145728"/> <input type="text" name="title" value="" maxlength="64"/> <input type="file" name="userFile"/> <input type="checkbox" name="overwerite" value="true"/> <input type="submit" value="Upload"/> </form> I've not yet found a solutions for this VERY SERIOUS problem If there is anyone that has a fix, please let me know. ------------------------------------------------------------------------ [2007-05-11 04:56:29] no_patience at hotmail dot com I worked around this injecting the values I wanted into the forms "action" statement and using $_GET to extract these values, the file uploading part then extracts its informaion from the POST part. I was also seeing this happening with both IE and FF ------------------------------------------------------------------------ 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/26004 -- Edit this bug report at http://bugs.php.net/?id=26004&edit=1