I am uploading files with s:fileUpload, which works fine. However, if the filesize exceeds the max an exception is thrown. Is there a way to detect this at an earlier point? The ideal would be to simply have a small error message appear on the webpage next to the Browse-button to inform the other user to pick a smaller file (something like FacesContext.getCurrentInstance().addMessage(uploadForm:someId
, new FacesMessage(Too big file!
) ) );
Thanks for any help!
Was a solution found for this? I'm currently catching the exception in pages.xml, but the conversation is terminated and the redirect doest return the user to the configured view-id. If you could post the resolution that would be great!