Here is the code:
<form name="test_form" method="POST" enctype="multipart/form-data" action="uploadTester.asp">
<input type="file" name="attach1" onChange="this.form.submit();" style="display: none;">
<input type="button" onClick="attach1.click();" value="Select a File">
The problem is the form is not submitting. I'm getting an "Access is Denied." error. If I change the style on the file input control so it will display, and click on that control directly, the form is submitted. The problem with this is I don't want the users to see the text box associated with the file control so I developed this workaround. I need to know why it won't submit this way though.