Hi,
I need to filter the files displayed in the browse dialogue window based on file types. I am using RadAsyncUpload control to
accomplish this.
Please find the aspx code:
C# (asp.net page behind):
I need to filter the files displayed in the browse dialogue window based on file types. I am using RadAsyncUpload control to
accomplish this.
- When I browse in FF, I can see two browse button displayed. Clicking on first browse button doesn't open dialogue with file lists. Attached the image. I want a simple file upload control with single browse button. I had a similar issue in IE but resolved by adding the following. But issue still persists in FF.
<
TeleControl:RadStyleSheetManager
runat
=
"server"
ID
=
"RadStyleSheetManager1"
>
</
TeleControl:RadStyleSheetManager
>
- When I browse with applying file filter for Image files(jpg,png), It shows all files in the open dialogue window instead of showing only those files with extension .jpg or .png. Attached the screen shot. But when I refresh the page it works fine.
- Can you please explain how does this file filter works in RadAsyncUpload w.r.t browsers. As far as I know, It depends on upload module. IE prefers silver light first where as FF prefers flash. Is that possible to make filters work in IE with having only flash (not silverlight)?. In which scenario does this combination (IE or FireFox with only flash) fails?.
Please find the aspx code:
<
TeleControl:RadStyleSheetManager
runat
=
"server"
ID
=
"RadStyleSheetManager1"
>
</
TeleControl:RadStyleSheetManager
>
<
TeleControl:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
>
<
Localization
Select
=
"Browse"
/>
</
TeleControl:RadAsyncUpload
>
C# (asp.net page behind):
protected void Page_Load(object sender, EventArgs e)
{
var filter = new FileFilter();
filter.Description = "GftxFiles(gftx,jpg)";
filter.Extensions = new string[2];
filter.Extensions[0] = "gftx";
filter.Extensions[1] = "jpg";
RadAsyncUpload1.FileFilters.Add(filter);
}