Re: upload file using webbrowser
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 09/13/04
- Next message: Jim K: "How to get a PIDL from a WebBrowser control"
- Previous message: Igor Tandetnik: "Re: How to execute a program or script from a web page?"
- In reply to: Banli: "upload file using webbrowser"
- Next in thread: Banli: "Re: upload file using webbrowser"
- Reply: Banli: "Re: upload file using webbrowser"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 11:07:00 -0400
"Banli" <banli_gao@hotmail.com> wrote in message
news:590e02b9.0409110714.16052d68@posting.google.com
> Can anyone tell me how can I programmly set the file name and submit
> the form to upload the file using webbrowser control?
You cannot. An ability for the script to upload an arbitrary file
without user's knowledge or consent would be a huge security hole, and
thus prohibited.
See KB Article KB167658 "HOWTO: Automate Internet Explorer to POST Form
Data". You will have to read the file yourself and manually build the
POST data in the correct format.
--
With best wishes,
Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage
- Next message: Jim K: "How to get a PIDL from a WebBrowser control"
- Previous message: Igor Tandetnik: "Re: How to execute a program or script from a web page?"
- In reply to: Banli: "upload file using webbrowser"
- Next in thread: Banli: "Re: upload file using webbrowser"
- Reply: Banli: "Re: upload file using webbrowser"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|