Solved

POST file or edit input type=file value

Posted on 2006-07-05
7
316 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:
2266180 earned 125 total points
ID: 17041333
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
ID: 17041482
>> 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
ID: 17041628
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 10

Expert Comment

by:atul_parmar
ID: 17042129
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
ID: 17042339
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:2266180
ID: 17042425
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
ID: 17057840
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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