Hi All,
Is it possible to limit maximum number of files and size in attachment on 1 document? I already try the solution from here, but it only counts the files chosen (not count the current attachment on the document). For example, I restrict the number of files attachment to 3, document A already have 2 attachments, then when I choose file and select 3 additional attachment it should be error because document A already have 2 attachments (currently it not error because it only counts the files chosen (3 files)).
Also, for the size limitation in attachment, if I use Maximum File Size (in kilobytes) properties in additional settings of Basic Forms, it will only check 1 chosen file size (not all chosen file and current attachment size on the document). For example, I set maximum file size = 10000, total size of current attachments in document A is 8000, then when I choose file and select 3 file with size 1000, 500, 2000 it should be error because total size of attachment will be 8000 + 1000 + 500 + 2000 = 11500 (currently it not get any error because all 3 files chosen the size is less than 10000, and it not count the existing attachment in document A).
Thank you.