How to limit file size when uploading to Apache Wicket version 1.4?
I use FileUploadField to handle loading with a regular form without any Ajax data. Is it enough to use Form.setMaxSize () to limit the size of the uploaded file?
If the file is too large, the browser will download the entire file and Wicket will generate a verification error message using the [form-id].uploadTooLarge .
But how does Wicket handle this situation internally by creating temporary files, etc.?
I would like to prevent the case when a user uploads a file with several GB, which is not suitable for memory or disk, while Wicket is processing the request.
source share