3 Replies Latest reply on Apr 9, 2011 4:55 PM by Anuj Kumar

    fileUpload component

    Anuj Kumar Newbie

      Hi All,


      I am using RichFaces 3.3.3 implementation and working with the fileUpload component. Everything is working fine except the handling of file size. I understand that it may not be possible to check the file size at client size before uploading, but there should be a way to stop the current upload once the server has detected that the file size is larger than the allowed limit.


      I see the error thrown in the log: ERROR 413request entity is larger than the server is willing or able to process

      As soon as it crosses the limit, but the upload process doesn't stop, it just goes on and on until the file has been uploaded. Is there a way to avoid that?


      I was trying the onsizerejected option to listen to the rejection event but I couldn't get it to work. Shouldn't I expect it to be invoked at the above error? If anyone has tried it, please let me know how you can terminate the current upload process as soon as it reaches the upload limit.