Mark Koscak <[EMAIL PROTECTED]> wrote: >I have spent some time on the archives, as yet I have been unable to find >information on this quesiton. > >If I have a servlet that processes form data using POST, do I have to add >functionality to stop people potentially dumping large files on the form and >uploading these to the server? > >Do servlets automatically restrict the size of data a user can send or can >we restrict this manually. If we can restrict upload size how would I go >about doing this. Is your form asking for file upload? If not, nobody can send you files using POST. If it is, you can still check the Content-Length header and refuse to process the reponse if it is too large. ------------------------------------------------------------------------ Russell Gold | "... society is tradition and order [EMAIL PROTECTED] (preferred) | and reverence, not a series of cheap [EMAIL PROTECTED] | bargains between selfish interests." [EMAIL PROTECTED] | - Poul Anderson, "Iron" ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
