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.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

2266180Connect With a Mentor Commented:
using indy, it's pretty simple:, stream); // stream can be a filestream, memorystream, etc

do you need to necessarely use twebbrowser?
>> Is it possible some how to edit TWebBrowser input type file value?
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.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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.
tadooxAuthor Commented:
atul_parmar, do you think it is posible to do it this way if my Twebbrowser is not visible?
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.
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..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.