Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

POST file or edit input type=file value

Is it possible some how to edit TWebBrowser input type file value?
If its is not then maybe some one could give me example how to post file to http server.

Thank you experts.










__________________________________________________________________________________________________

http://www.web-hosting-wizard.com/
0
tadoox
Asked:
tadoox
  • 3
  • 2
  • 2
1 Solution
 
2266180Commented:
using indy, it's pretty simple:

idhttp1.post(url, stream); // stream can be a filestream, memorystream, etc

do you need to necessarely use twebbrowser?
0
 
atul_parmarCommented:
>> Is it possible some how to edit TWebBrowser input type file value?
see http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20848037.html
0
 
tadooxAuthor Commented:
ciuly, i will try indy no it is not necessarely TwebBrowser but i thougth it would be more simple.

 atul_parmar, thanks for information but it is no help because for input type=file interface value is read only and i cant set it in regular vay.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
atul_parmarCommented:
Yeah the value is readonly I've also noted that we can type into the textbox.

To do it anyway, you can set focus to the object then send keystrokes.
0
 
tadooxAuthor Commented:
atul_parmar, do you think it is posible to do it this way if my Twebbrowser is not visible?
0
 
2266180Commented:
I would say that sending keys to webbrowser is a very ugly idea. no offense. since you can do it from indy with one line of code, why bother?
you can use twebbrowser for al lother operations if you really want that  and indy for posting the data.
0
 
tadooxAuthor Commented:
ciuly, i totaly agree with you it is a very ugly idea :)

Thank you for help guys i will try to do some code with indy..
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now