That's the way IE works...if there was a way to just set the upload file and auto submit an upload, think of the security risks. You need to go the way of winsock or some other comparable means.
Main Topics
Browse All TopicsHi Experts!
Im trying to write a VB6 program that allows me to automaticly upload files by remote controliing the Internet Explorer (or WebBorser Control).
It's quite easy to fill TextBoxes of a "normal" form within a website by using the .Document property (DOM: Document Object Model).
But it seems that there is no correspondending possibility to set the FilePath value of an "upload control" (TextBox for the file path + CommandButon to start browsing...).
So my idea was to use the FindWindow API function to get the window handle (hWnd) of the TextBox which can be used to directly type in the file name.
If you got the handle it's no problem to set the .Text Property.
But then I found the next problem: The Internet Explorer does'nt seem to have any child windows except one with the class name "Internet Explorer_Server"....
I know I could use the Winsock Control or something like that instead, but I want to do is that way.
Who has any idea?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I HAVE to do is this way because i want to use an SSL connection. I sure writing the whole SSL layer again was a huge effort.
Since I got 10,000 experts points an are premium member I could view the PAQs.
Now I know that this is possible! Look at these PAQs:
http://www.experts-exchang
http://www.experts-exchang
But if somebody can give me a better solution please tell me.
Business Accounts
Answer for Membership
by: cem_turkPosted on 2007-01-21 at 13:51:45ID: 18361160
Well i dont think that its possible to do that, file inputs are read only fields, you cant change their value by code. I think you should consider uploading files via ftp in your program.