upload form now has no limit by default:
/** Maximum size of an upload in bytes */
Bytes maxSize = Bytes.MAX;
Jan Mikkelsen wrote:
Here is what happened:
I tried the head version. It fails to complete unittests, so I skipped
that.
I now get a NPE in line 69 of MultipartWebRequest:
diskFileUpload.setSizeMax(uploadForm.maxSize.bytes());
That is because I hadn't set max size. I suspect this is something
others will fail to do, so maybe default behaviour should be no max size?
I added this to my form constructor:
setMaxSize(Bytes.kilobytes(200));
and now it works!
Thanks
Hi Eelco
No, I am not working on head, but I will try that tomorrow, and I will
definitely try your suggestion and get back with results.
Thanks
/Jan
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user