RadAsyncUpload : Showing all the files

2 posts, 0 answers
  1. Vimal
    Vimal avatar
    5 posts
    Member since:
    Apr 2012

    Posted 08 Aug 2014 Link to this post

    Hi,

    We are using  “RadAsyncUpload” to upload the files. We are restricted files selection types by specifying AllowedFileExtensions=".zip,.rar".
    Its working as expected but  when we try to open the file selection dialog it list all the files in XP Operating system  (IE8) .

    Controls Version details.
    Telerik.Web.UI
    FileVersion:2011.1.519.40
    ProductVersion:2001.1.519.40

    Code:
     <telerik:RadAsyncUpload ID="PatchFileUploadControl" runat="server" MaxFileInputsCount="1"
       OnClientFileSelected="FileSelected" OnClientFilesUploaded="FileUploaded" AllowedFileExtensions=".zip,.rar">
    </telerik:RadAsyncUpload>

    Please let  us know any changes to be done.




  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Aug 2014 in reply to Vimal Link to this post

    Hi Vimal,

    The file filtering is available with Silverlight and Flash module only. Note that when RadAsyncUpload is utilizing its IFrame module (when neither Flash nor Silverlight is installed) no filtering capabilities are available. This is because browsers don’t provide native file filtering support. Please check the upload module used in the appilcation and try to disble the FileApi and IFrame module as follows.

    JavaScript:
    <script type="text/javascript">
        Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; };
        Telerik.Web.UI.RadAsyncUpload.Modules.IFrame.isAvailable = function () { return false; };
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top