Hi all,
I've a Multipart form defined in this way:
Form<T> uploadForm = new StatelessForm<>("uploadForm");
uploadForm.setMultiPart(true);
uploadForm.setMaxSize(Bytes.megabytes(4));
Like you can see I defined a maximum file size to avoid upload of too
large files.
My problem is:
When I upload a *too large* file nothing happens, there are no Java
exceptions and all seems ok, while, instead on JavaScript console I get:
Wicket.Ajax: Cannot read Ajax response for multipart form submit:
SecurityError: Blocked a frame with origin "http://localhost:9080" from
accessing a cross-origin frame.
...
wicket-ajax-jquery-debug-ver-1506594798000.js:1 Wicket.Ajax:
Wicket.Ajax.Call.failure: Error while parsing response: No XML response
in the IFrame document
Is there a way to have the evidence of this failure in Java code? In
order to show a feedback panel when file is too large?
Best regards,
Andrea
--
Dott. Andrea Patricelli
Tel. +39 3204524292
Developer @ Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member