Hi All,
Can anyone please help me out in validating a document submission by the attachments’ size, in the OnSubmit event of the form.
Please note that, I don wanna process the document when it exceeds the attachment size limit. So, the possibility of showing an Warning Page after the WebQuerySave agent is ruled out.
Also, i figured out a way to do this, like by creating an Activex Object : “Scripting.FileSystemObject”. This works fine. But, i wanna know if there is a way to do this without using Activex Object. Cos’ the above mentioned activex obj is ‘Marked as Unsafe’.
Any help in this regard is highly appreciated.
Thanks in advance,
~! Bruno… 
Subject: File Attachment Restriction - On Submission
Another option you can try (it’s a little complicated):
in the File Upload Control object/HTML tab/Other, write a javascript function to validate the attachment size on the OnChange event. If the file size is okie, continue, otherwise, reset the file upload control and display an error message.
Example: in HTML tags, Other:
onChange=jsFunctionName(document.forms[0].fileUploadID)
jsFunctionName is a javascript function to validate the attachment file size.
document.forms[0].fileUploadID is the ID name of the File Upload Control Object. You will need this for js function to calculate.
Subject: RE: File Attachment Restriction - On Submission
Hi,
Sorry for the delay in response.
Could u tell me how to find out the attachment size that is attached to the file upload control. Again without processing the document, means just like any other field validation…