IHTMLInputFileElement solution to readonly

  • Thread starter Thread starter Andla Rand
  • Start date Start date
A

Andla Rand

Hi,

I have an uggly solution to send information to a file upload control or
IHTMLInputFileElement.
For security reason Microsoft doesn't allow this. To get around this I
created this small sample code.
If you have a better solution I would be grateful. Please let me know.

string type=((IHTMLInputElement)ei).type;
if(type=="file")
{
((IHTMLElement2)ei).focus();
SendKeys.SendWait(arg2);
}

Yours sincerely
Andla
 
Yap, I have the same problem with this IHTMLInputFileElement but unfortunately I work in different prog language.
I work in Delphi but your solution gave me a start point (Even though as you said it is not very elegant at least is a solution)
P.S. What was in their heads to make the value readonly.Security? for what? HTTP?? an uncoded human-readable protocol based on strings.
 
Back
Top