[nycphp-talk] How to display LimitRequestBody Value in /etc/httpd/conf.d/php.conf
Phillip Powell
phillip.powell at adnet-sys.com
Mon Jun 14 14:12:20 EDT 2004
I'd like to be able to display the amount found in the LimitRequestBody
value that is set in /etc/httpd/conf.d/php.conf. I know the default
value is 524288 bytes or so, but what if the admin changes that value;
my application is portable and could be in multiple environments where
LimitRequestBody might have a different value?
I already have my settings in MAX_FILE_SIZE to handle maximum size; I
even include a smaller local instance that I check server-side to ensure
that it's (for now at) 100K. However, if the user attempts to upload
anything more than 524288 bytes in size it will bomb out before it even
gets to my redirection URL handling the error:
1) Mozilla Firefox: produces "Document contains no data" error alert
client-side message
2) Konqueror: produces a local Konqueror error page with no error
description
I thought it would be best since these seem to be handled from the
client (thus, nothing I can do about everybody's client browsers) to
display a message indicating that their browser will not accept an
upload of more than $LimitRequestBytes bytes in size.
Thanx
Phil
--
---------------------------------------------------------------------------------
Phil Powell
Multimedia Programmer
BPX Technologies, Inc.
#: (703) 709-7218 x107
Fax: (703) 709-7219
More information about the talk
mailing list