file filtering server side

2 posts, 1 answers
  1. mathieu
    mathieu avatar
    22 posts
    Member since:
    Jun 2012

    Posted 01 Nov 2012 Link to this post

    i try to set the file filtering like here :
    i try in to way :
    this.FileFilters.Add(new FileFilter("Tous les documents accepté", typeDocumentCtrl.getExtensionAllowed().ToArray()));
        .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 :-)

  2. Answer
    Plamen avatar
    3079 posts

    Posted 05 Nov 2012 Link to this post


    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.

    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.
Back to Top