I am currently using version 4.3.2 of rich fileupload in JSF richfaces. The issue I am facing is that the files first get uploaded to the server and then an error is thrown if the file size exceeds a certain limit. Even though I have set a size restriction in web.xml, I cannot set a smaller number because it is a global parameter.
When a user uploads a large file, it takes a considerable amount of time due to slow upload speeds at the client side (it can take 5-10 minutes to upload a 25 MB file).
I am considering validating the file size before it gets uploaded to the server using JavaScript. In the 3.3 version, this was possible using event.memo.entry.size, but unfortunately, this feature is not available in the 4.3.2 version.
I am looking for a solution to check the file size on the client side using rich fileupload (4.3.2) exclusively, as it is already extensively used in many parts of my application. Switching to a completely new solution would not be practical.
Your guidance on this matter would be greatly appreciated.