|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 2
|
In the property: AllowedExtension, I place .pdf
But when I use the browse button, I can still see all files. Is there anyway to limit the types of files a user sees? I know the uploader catches and throws an error, but I rather have the control hide the non-allowed files from displaying in the first place.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That makes perfect sense, but we do not believe it is possible. There are no DHTML interface to filter files in the file browsing dialog.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 2
|
But I believe the OpenFileDialog control in .NET has that capability. Anyway to just inherit that functionality in the future?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
OpenFileDialog and file browsing dialog inside browsers are two very different things. Browsers implements a very limited set of features and exposes them through DOM, which can be accessed via JavaScript. None of the .NET stuff run on the client side. All .NET stuff runs on the server side when using ASP.NET. Client side is all DOM and JavaScript.
Thanks
|
|