How to limit file size in uploads in Apache Wicket version 1.4?
I am using FileUploadField to handle upload with normal form submit without any Ajax stuff. Is it enough to use Form.setMaxSize() to limit the size of uploaded file?
If too large file is uploaded, the browser will upload the whole file and Wicket will create validation error message with key [form-id].uploadTooLarge
.
But how Wicket internally handles this situation, creating temporary files etc?
I'd like to prevent a case where user uploads file of several GBs that doesn't fit to memory or disk while Wicket handles the request.