Skip to main content
Known Participant
Mar 7, 2025 2:31 PM UTC
Question

Need to check the size of the documents not exceeded beyond 10 MB on the interface while uploading

I need to check whether the documents uploaded by the user is not exceeded 10 MB. Apart from using document function which requires the document ID how this can be implemented

8 replies

stefanhelzle0001
Brainy
Mar 7, 2025 2:34 PM UTC
mikes0011
Brainy
Mar 7, 2025 2:34 PM UTC

The Expression Guru
Known Participant
Mar 7, 2025 3:27 PM UTC

Thank you for your response Mike but I want to use forEach to calculate the size for all the files uploaded, will

Known Participant
Mar 7, 2025 3:32 PM UTC

Thank you everyone it worked!! I can see for every other file uploaded

Known Participant
Mar 8, 2025 3:12 AM UTC

How to check and disable the file upload if size limit exceeded

stefanhelzle0001
Brainy
Mar 8, 2025 9:53 AM UTC

What do you mean with "disable". If you follow the code example I shared, the field validation triggers and the form cannot be submitted.

If this is not what you need, please describe in more detail.

Known Participant
Mar 9, 2025 2:54 AM UTC

Although the validation is coming up but still document can be submitted further only the user can remove it after following the validation