Hi,

There is no standard way to accomplish this so the web containers (e.g.
Tomcat, Jetty, ...) provide custom settings to do what you want. See [1]
Wicket uses standard Servlet APIs and it either receives the whole input
stream or nothing.

You have to consult with the documentation of the web container you use.

1. https://issues.apache.org/jira/browse/WICKET-3525

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Oct 22, 2014 at 7:59 AM, Roman Grigoriadi <
roman.grigori...@gmail.com> wrote:

> I am trying to check size of each of uploaded files, when there is more
> than
> one file in one POST request.
>
> While there may be other way to do so, it looks like fileSizeMax in
> FileUploadBase, does just the right thing, aborting processing multipart
> POST by throwing FileUploadException which causes a call to
> Form.onFileUploadException.
>
> I would like to use it this way, instead of a check after POST request is
> parsed and files are copied to disk, but I don't see any way to propagate
> the parameter in. Could it be that MultipartServletWebRequestImpl (which
> creates FileUploadBase objects) has forgotten to propagate fileSizeMax
> inside FileUploadBase?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-util-upload-FileUploadBase-fileSizeMax-tp4668001p4668018.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to