This is not an apache proble it is a problem with your php.ini file.  In
this file there is a line that specifies how large of POST data can be
received, the default is 500k.  If you are running apache 2.0 there is
an additional place where this might be being defined.  You can find
this file in the conf.d directory where your config files for apache
live mine is /etc/httpd/conf.d/php.conf  I hope this helps.

-----Original Message-----
From: Caldwell Sgt Brandon L [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 1:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [EMAIL PROTECTED] RE: Can't POST over 500K


It really seems like apache isn't letting me post over 500kb. Here is
the sample code I used to test this problem independantly from the
bulletin board software:

<form name="form1" method="post" action=""
enctype="multipart/form-data"> <input type="file" name="imagefile"> 
 
<input type="submit" name="Submit" value="Submit"> 
  <?
if(isset( $Submit ))
{
copy ($_FILES['imagefile']['tmp_name'],$_FILES['imagefile']['name']) or
die ("Could not copy");
        echo "";
        echo "Name: ".$_FILES['imagefile']['name']."";
        echo "Size: ".$_FILES['imagefile']['size']."";
        echo "Type: ".$_FILES['imagefile']['type']."";
        echo "Copy Done....";//}
}
?></form>

I may have to break down and send this in chunks, but it really seems
that shouldn't be required. As for my phpinfo() response, it list 20M
which is what is in php.ini. I've gone all the way up to 200M just to be
sure.

-----Original Message-----
From: Leif W [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [EMAIL PROTECTED] RE: Can't POST over 500K


If it is in fact a timeout issue, you may want to consider either
breaking up the file into smaller chunks and reassembling on the server,
or have the script only read so much, then stop and alert the client
with a page with a refresh and some javascript to resubmit the file
again, and have the server seek to the right position and read another
chunk of data, and so on until the file is done.  Not sure how to do it
in PHP.  I think PHP doesn't let you get at the system reads for a file
upload, it just does it and sticks it in $_FILES.  But Perl will let you
do such a thing, as there's no built-in mechanism for file uploads, it
has to be coded, or use some module.

Leif

----- Original Message ----- 
From: "Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 9:36 AM
Subject: Re: [EMAIL PROTECTED] RE: Can't POST over 500K


> At 06:30 AM 8/22/2003, you wrote:
> >So no one else has anything suggestions on this?
> >
> >-----Original Message-----
> >From: Caldwell Sgt Brandon L
> >Sent: Wednesday, August 20, 2003 7:46 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Can't POST over 500K
> >
> >
> >         Not sure if this is Apache or PHP, but I'm leaning towards
Apache.
> >I'm using Invision Power Board (also phpBB), and whenever I attempt 
> >to upload a file, I am limited to 500KB files.  I've changed all the 
> >setting
in
> >php.ini as well as the settings in each of the respective BB
configurations.
> >The error varies per browser: IE returns page not found; Mozzilla 
> >return "The document has no data."; Konqueror responds with a lost
connection.
> >         I'm using Apache 2.0.40 with PHP 4 on a RedHat 9.0 server.
Thanks
>
> Someone else would be better suited then me to point you were to 
> change it (whether Apache or PHP or the Bulletin Board software), but 
> I would check time-out settings.
>
> 500kb files are pretty large, even for Cable, ISDN and DSL 
> connections. I just uploaded a 700+kb file to one of our servers (in 
> my case I used a
Miva
> applet I wrote some years ago to upload the file).
>
> I'm on business DSL (typically faster than residential DSL services) 
> and that 700+kb file took awhile to upload. I didn't time it (I should

> have - duh). While it didn't take minutes, it wasn't "near 
> instantaneous" either.
>
> So rather than checking for a "size limit", it might be worth looking 
> into a potential low time-out setting somewhere in your configuration 
> or application(s).
>
> Hope that helps.
> -mike
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project. See <URL:http://httpd.apache.org/userslist.html> for more 
> info. To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to