954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help in webbrowser - Setting file type value

Hello
Once again i need help.
I have a webbrowser
So once webbrowser is completed then it should add the specified value in [TEX] [/TEX] value in php.

Eg:

Webbrowser link is http://tinypic.com/

When webbrowser is completed then this http://screensnapr.com/e/LCgzhP.png value will be our specified value.

I tried using this on webbrowser completion.

Webbrowser1.Document.getelementbyid("the_file").SetAttribute("value", "C:/test.jpg")

But thats not working.

Plz help me in this or tell me how to do this in any other way
Thanks

vb2learn
Newbie Poster
14 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

I remember reading a while ago on http://www.w3.org/ , that for security reasons, you cannot add values to <input type="file"/> .
.If this were to be allowed, files could easily be uploaded from your p.c. without your knowledge.

Best suggestion I can offer, is to click the "Browse" Button.

WebBrowser1.Document.GetElementById("the_file").InvokeMember("click")
codeorder
Posting Virtuoso
1,913 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

Hmm! I got the way thorugh posting method.
Thanks anyway
Marked as resolved

vb2learn
Newbie Poster
14 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

Can you share how you did it through posting method Please as I am having the same issue

sean7725
Newbie Poster
4 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: