hi Eric,
thanks for the response. But I was looking from the point of adding
the handler to apache. that way, if an uploaded file is larger than
allowed size, it wont even get posted to the tmp directory and you
wont end up using any bandwidth / memory with the illegal upload.
its working correc
If you wanted to do this purely within django, you could write a
custom middleware that reads a 'request body max size' setting from
settings.py, then checks the content-length header on incoming request
against that setting and returns a custom 413 if it's too large. I
believe that doing
I have used the LimitRequestBody directive in the apache conf to set
it to 1 mb. so, any files biggers than 1 mb should be rejected.
while testing it however, i found that when i try to upload a file
larger than 1 mb, it ends up displaying my custom 500.html page..
how can I display another cust
3 matches
Mail list logo