Hi I can see your problem, but AFAIK it's not possible to that kind of check using javascript (perhaps in IE, some versions). Perhaps use a client side solution instead, like java applet or flash?
Frank On 9/21/07, spencer.c <[EMAIL PROTECTED]> wrote: > > > I have a form with a FileUploadField, where the maximum file size is > fairly > large (100-200MB). > > I set the maximum size using the form's: setMaxSize(Bytes.megabytes(200)); > > This works fine, as the form only gets processed when the file is under > that > size. However, if the file is over that size, the user is not notified > until the upload completes, or at least gets beyond the limit. So if > someone were to upload a 300 MB file, they won't find out that the file is > too large until after they exceed 200 MB sent, which can be a long time. > > Can anything be done to validate the file size prior to exceeding the > maximum file size? I think that if the file size is exceeded, the form > never gets processed at all, so server side it seems like it would be out, > but if I could add a client side validation in addition to the server side > validation, that would be great. > > Has anyone else run into this? > > > > -- > View this message in context: > http://www.nabble.com/Possible-to-validate-file-size-prior-to-sending--tf4497198.html#a12825206 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
