Joget DX Available for Download
Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.
In this article, we are going to show you how to check multiple files and total up their file size so that it will not exceed a certain threshold through Bean Shell validator.
This is an example where you want to upload a file that exceeds 5 MB.
This is an example where all the files are below 5 MB but they total up to exceed 5 MB which causes the validator to work.
To do this, go to a file upload element and select bean shell validator and insert the code below into script.