Making Active X safe

Internet Explorer89
Hi,



I am trying to find the size of the file that is going to be uploaded before

i upload the file so i can show the user a progress bar.



The active x code is in a html page in the script section (javascript). how

can i digitally sign to make active x in my webpage safe.



This is used only in the intranet.



Thanks


-