1 Reply Latest reply on Dec 17, 2003 5:37 AM by Jon Barnett

    Changing maximum form content

    Mark Wigmans Newbie

      I use Jboss 3.0.7/Jetty and I want to be able to post large forms to it (> 200K)

      I added the following line in the startup script (run.bat) to change the maximum form content size:

      set JAVA_OPTS=%JAVA_OPTS% -Dorg.mortbay.http.HttpRequest.maxContentSize=512000

      However, it doens't seem to work. A binary file of 50 K (base64 + URLEncoding must be added to this figure) works fine. A binary file of 211 K gets corrupted, the last part is completely filled with content '00'.

      What can be the reason that this setting of a system property has not the requested behavior or can it be done in another way?


      Every response is welcome.

      Regards,
      Mark Wigmans

        • 1. Re: Changing maximum form content
          Jon Barnett Master

          You don't really document the form configuration. But usually for file uploads, you have enctype="multipart/form-data". This works without needing to modify any Jetty settings on my applications. YMMV but perhaps indicate further information on your form settings and any errors that might occur, if you are already ensuring multipart form data.