I need dynamic web page that will upload a file to a web service. I would very much like the web page to be able to know the file name automatically and execute submit. Without the file upload, I can make a page submit automatic but I can not seem to get the page to handle the file upload <INPUT type="file"> without stopping to browse for the filename.
The exact file to be uploaded could easily be built into the HTML but I can not seem to find a way to make that happen. I generated a unique HTML page to include all the other form data necessary on the form but I can not seem to make the file upload automatic.
If that does not have a solution, I would like to at least have the browse open in a default folder to make it easy for the user to select the file. That seems to be difficult also. It keeps dropping back to Documents.
General Environment will be out of my control except to say that the local computers will be running Windows XP or Windows 7 machines so I need to program to a model that will not be an issue in various browsers and versions of browsers.
<FORM NAME="form1" ACTION="service information" METHOD="POST" ENCTYPE="multipart/form-data">
Select File to Upload:
<INPUT TYPE="file" NAME="uploadedfile">
Stripped out everything but the bits that affect the upload