Hi Tal ?

Sorry to bother you. I say your message posted (attached) about problems
trying to gracefully reject large uploaded files.

Did you find a solution ? (Only way we can provide graceful errors is to
read the whole file which defeats the purpose of limiting the file size...)

Hope you can help.

Regards,
Jim.


------=_NextPart_000_00EE_01C0823D.09719AF0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

RE: Session ProblemHello,

We are trying to use the Oreilly servlet package to service requests from a
form that is used to upload files. The form contains buttons, checkboxes,
radio buttons, and several 'file' fields.

When request size is larger than the max size we allow, the constructor

new MultipartParser(req, 100000, true, true)

throws an exception, reporting about the size violation.

This is fine but when this happens, we cannot access the values of fields
and buttons that were submitted. This significantly reduce our ability to to
provide the user with a graceful error handling and all we can indicate in
the error message that the total request size was above the limit and any
setting of checkboxes and radio buttons is lost.

Are we missing something ? Any idea how to improve the error handling and to
recover field values ?

Thanks,

Tal

 -----Original Message-----
From: Mike Campbell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Session Problem


  Craig (or anyone),

  > You might want to turn your thinking inside out on how to
  > handle this problem
  > :-).

  I came in on this discussion thread mid-strand, and have a question.  Your
code snipped on session handling made perfect sense, and really made the
session-handling issue finally "click" for me.  My question is about
timeouts; where is the timeout value set?

  Thanks

Reply via email to