httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey D. Means" <me...@meanspc.com>
Subject RE: [users@httpd] RE: Can't POST over 500K
Date Sun, 24 Aug 2003 10:08:24 GMT
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:caldwellbl@mcwl.quantico.usmc.mil] 
Sent: Friday, August 22, 2003 1:17 PM
To: 'users@httpd.apache.org'
Subject: RE: [users@httpd] 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:warp-9.9@usa.net]
Sent: Friday, August 22, 2003 9:54 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] 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" <mike.lists@levrah.net>
To: <users@httpd.apache.org>
Sent: Friday, August 22, 2003 9:36 AM
Subject: Re: [users@httpd] 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: 'users@httpd.apache.org'
> >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: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


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


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message