I have an atachment interface on my form that allows the user to click a custom button labeled, "Attach New File". The script opens a browse window and the user is able to select and attach a file they select. I would like to prevent the user from being able to attach .zip files because Acrobat will not open them. How can I test the file they select and not attach it if it is a .zip file? Here's the script:
↧