Topic: Apache2 question

Hi. I want to use LimitRequestBody 1048576 in a .htaccess, if an uploaded file is larger than that, I want the user to be redirected to /asdf.html or something. Is this possible? I have searched on google alot and I haven't found anything of use yet.

Re: Apache2 question

It does not look like you can redirect as part of that directive.

Re: Apache2 question

Do you have any other suggestion then? I dont want the file to be uploaded first and then perform a size check. If that is possible in anyway else than with LimitRequestBody

Re: Apache2 question

i dunno but maybe

ErrorDocument 413 /limitexceeded.html

but thats a bit of a guess

5 (edited by chrizz 2005-01-14 19:01)

Re: Apache2 question

Connorhd: i've tried that allready hmm'

Dosent work at all. Apache seems to just drop everything of that request if LimitRequestBody condition is confirmed.