FileUpload control question

J

JoeP

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
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

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.
 
P

Phil H

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.

Could also be that Browse button only functionality is not an obvious
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?
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top