Solved

POST file or edit input type=file value

Posted on 2006-07-05
7
314 Views
Last Modified: 2010-04-05
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
Comment
Question by:tadoox
  • 3
  • 2
  • 2
7 Comments
 
LVL 28

Accepted Solution

by:
ciuly earned 125 total points
Comment Utility
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
 
LVL 10

Expert Comment

by:atul_parmar
Comment Utility
>> 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
 

Author Comment

by:tadoox
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 10

Expert Comment

by:atul_parmar
Comment Utility
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
 

Author Comment

by:tadoox
Comment Utility
atul_parmar, do you think it is posible to do it this way if my Twebbrowser is not visible?
0
 
LVL 28

Expert Comment

by:ciuly
Comment Utility
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
 

Author Comment

by:tadoox
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now