Reputation: 8217
I'm Using the ASP.NET FileUpload Control for the first time and so far its working, except one thing: It seems that it is not possible to type a path and filename like
C:\Temp\myfile.txt
into the FileUpload control directly. I always have to use the OpenFileDialog.
Is there a way to enable the text box of the FileUpload control, so I can type into it?
I'm using ASP.NET 4.0.
Upvotes: 0
Views: 572
Reputation: 7215
Not that I know of. I believe the reason for this is that you could theoretically write javascript to populate it with "c:\path\to\awesome\file.txt" and upload it silently without the user's knowledge, therefore it's not possible to type stuff into it or pre-populate it in any way.
Upvotes: 2