|
From: Dave I. <dav...@en...> - 2006-02-09 15:36:20
|
Is there any way to have miniserv reject file uploads over a certain size? I have implemented a custom module that allows users to upload an image file. However, if the user attempts to upload a very large file (say 1GB), the whole server grinds to a halt as miniserv attempts to load the file into memory. I can put size restrictions in my module, but miniserv still attempts to upload the entire file before passing control to my module. What I need to happen is for miniserv to reject the upload immediately (perhaps with Error 413 - Request Entity Too Large), without uploading anything. Thanks Dave Isaacs |