I'm trying to track down this error. I had a web site written for my
company. There is an admin function where we can select photos to be
uploaded to the server for display on the site.
Anyhow, if I select more than 7 photos at a time I receive this error:
Request Entity Too Large
The requested resource
/admin/add_product.php
does not allow request data with POST requests, or the amount of data
provided in the request exceeds the capacity limit
The web guys really have no clue on this, so I'm trying to track it
myself. The website is on a Red Hat 9 server.
Any ideas or thoughts?
Thanks,
Arthur
>
> Anyhow, if I select more than 7 photos at a time I receive this error:
>
> Request Entity Too Large
> The requested resource
> /admin/add_product.php
> does not allow request data with POST requests, or the amount of data
> provided in the request exceeds the capacity limit
>
Not sure - where are you seeing this error? You can set a max upload in the
php.ini file (which IIRC can be overridden in the apache config locally).
There is also a limit set by apache.
HTH
C.
I'll look at this php.ini file........not sure what I am looking for,
but let's see.......
Arthur
Do I need to reload php?
You should stop and restart your web server. Presuming that (on RH) this
is Apache you should also be aware that Apache itself may also
independently set a restriction on maximum upload file size (and the error
message you quoted look more like an Apache one than a PHP one).
Geoff M
How are you gathering the info for the requests? Is it being passed by
a GET by any chance? If so, I thought there was a physical limit to
how many characters you can pass via a URL <?>.
Adam.
At your php.ini in your webserver there is a directive like
post_max_size = 16M
Maybe you must change this value to a higher value.
> I thought there was a physical limit to how many characters
> you can pass via a URL <?>.
STD66 - the RFC which, among other things, defines the generic URI
syntax - doesn't impose a limit on URL length. But there could be
scheme-specific limits, practical limitations, and even private
policies that foist their own restrictions on those working under them.
--
Jock
http://www.google.co.uk/search?q=%22does+not+allow+request+data+with+POST+requests%2C+or+the+amount+of+data+provided+in+the+request+exceeds+the+capacity+limit
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.14
http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody
--
Andy Hassall :: an...@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool