This is a migrated thread and some comments may be shown as answers.

file filtering server side

1 Answer 47 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
mathieu
Top achievements
Rank 1
mathieu asked on 01 Nov 2012, 08:57 PM

i try to set the file filtering like here :
http://www.telerik.com/help/aspnet-ajax/asyncupload-file-filtering.html
i try in to way :
this.FileFilters.Add(new FileFilter("Tous les documents accepté", typeDocumentCtrl.getExtensionAllowed().ToArray()));
typeDocumentCtrl.getExtensionAllowed()
    .ForEach(delegate(string extension)
        {
            this.FileFilters.Add(new FileFilter(extension, new string[] {extension}));
        }
    );
this.AllowedFileExtensions = typeDocumentCtrl.getExtensionAllowed().ToArray();
both or not working 
i just need it for chrome other browser would be nice but not mandatory 
i also try :
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };
Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };
but that's change nothing 

the last test was quick maybe i can test further, but i don't know how to test in a usefull way :-)

thank to help me :-)


1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 05 Nov 2012, 12:01 PM
Hello,

 
In Chrome RadAsyncUpload uses FileApi upload module that is native for the browser 
but unfortunately the browser itself does not support file filtering functionality and that is why it can not be achieve it with our control either.

Hope this will explain the issue.

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
mathieu
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or