security problem with html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi al
i try to change the value of inputFile element from my program and the value doesn't change because of security reason
i'm talking about input of browse files
someone knows how to do it
thank you very much
 
guy,

What do you mean because of security reasons? How are you trying to
change the value in your program?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

guy said:
hi all
i try to change the value of inputFile element from my program and the
value doesn't change because of security reason.
 
Guy,

This is simply not permitted for <input type=file> HTML elements. If it
were possible, it would allow malicious site operators to read files off
users' local machines and networks.

For pure display purposes, you can fake it by either collapsing the text box
portion of the <input type=file> element down to minimum width or floating
an <input type=text> element over the text box portion. Getting the
formatting right for the first of these two approaches might take some time,
particularly if you need to support multiple browsers.

HTH,
Nicole
 
Back
Top