Re: FormFile: Catching IllegalArgumentException

2007-06-11 Thread Niall Pemberton
On 6/8/07, Eric Jain <[EMAIL PROTECTED]> wrote: I have a form with a FormFile field, which works great, except that when someone submits a plain string for this field (e.g. a spammer crawling the site and doing random submissions) I get an ugly stack trace logged... I wonder is there a way to cat

Re: FormFile: Catching IllegalArgumentException

2007-06-08 Thread Eric Jain
Vincent Lin wrote: Do you have this setting in your form? enctype="multipart/form-data" As mentioned, submissions via the form in the web page work fine. The issue is that if someone bypasses the form and POSTs an (invalid) non-multipart request that puts some random string in the parameter

Re: FormFile: Catching IllegalArgumentException

2007-06-08 Thread Vincent Lin
Do you have this setting in your form? enctype="multipart/form-data" On 6/8/07, Eric Jain <[EMAIL PROTECTED]> wrote: I have a form with a FormFile field, which works great, except that when someone submits a plain string for this field (e.g. a spammer crawling the site and doing random submiss