1 Reply Latest reply on Jul 5, 2011 4:44 PM by SunRay User

    s:fileUpload and oversized files

    Tonje Fredrikson Newbie

      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!