ID:               26004
 Comment by:       w dot antonia at beacon dot e-sussex dot sch dot uk
 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:

Apache 2.2.4 and PHP 5.2.4 SuSE 10.3

Problems uploading files

With enctype="multipart/form-data": $_POST variable set but contains no
array keys.

print_r(array_keys($_POST));

Prints: Array()

Without enctype="multipart/form-data": $_POST variable set and contains
array keys, but no file data as expected for upload.

Help.


Previous Comments:
------------------------------------------------------------------------

[2008-01-25 00:06:20] jareeq at op dot pl

Same problem in apache 2.2.8 , php 5.2.4 on the begining i'v suspected
mod_auth_sspi instaled on my apache but after disabling it error still
appears.
Behaviour is strange - if wait aprox 10s betwen submits of form all
works fine fast submit of form immediately after it appears generates
this problem. The same issue on apache 2.2.8 on windows/linux (XP pro
and slackware), `enctype="multipart/form-data"` include - don't matter.
Additionaly tested on windows IIS 5.1 with the same configuration
(php.ini) of PHP (isapi module)- no problem.

------------------------------------------------------------------------

[2008-01-17 21:26:10] emmcmahon at comast dot net

I just experienced this problem NOT using enctype="multipart/form-data"
- although I have data being passsed simultaneously with Adobe Spry.  I
used the recent solution <input type="hidden" name="MAX_FILE_SIZE"
value="50000000"> worked for me.

------------------------------------------------------------------------

[2007-12-23 04:36:50] mondo at mondomx dot com

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

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to