troubleshooting Question

HTTPS POST with a file Upload

Avatar of nlpalmquist
nlpalmquistFlag for United States of America asked on
6 Comments2 Solutions454 ViewsLast Modified:
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

I have no idea if this can be accomplished with some javascript or php or if there is some additional HTML that I am missing.  Any help would be appreciated.
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros