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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top