|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FileUpload control questionHi All,
I am using the FileUpload control for the ASPX page. How do you disable the text box portion of that control, so I can force the user only to pick up a file via the Browser button, and not to type any file name that does not exists. Appreciate any feedback or any other suggestions. Thanks, Joe No, can't be done with the standard FileUpload control. The FileUpload
control is very sensitive from a security standpoint, and for that reason it is not very configurable. Less features means less attack vectors. Show quote "JoeP" <J***@hotmail.com> wrote in message news:ODutowCDIHA.3712@TK2MSFTNGP02.phx.gbl... > Hi All, > > I am using the FileUpload control for the ASPX page. How do you disable > the > text box portion of that control, so I can force the user only to pick up > a > file via the Browser button, and not to type any file name that does not > exists. > > Appreciate any feedback or any other suggestions. > > Thanks, > > Joe > > > No, can't be done with the standard FileUpload control. The FileUpload Could also be that Browse button only functionality is not an obvious> control is very sensitive from a security standpoint, and for that reason it > is not very configurable. Less features means less attack vectors. requirement and to implement it requires a considerable extension to the Javascript (it requires more complex client-side behaviour). In any case, once the user hits the browse button what is there to stop them typing in the filename box within the windows open file dialog? |
|||||||||||||||||||||||