[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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