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

RadAsyncUpload : Showing all the files

1 Answer 23 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Vimal
Top achievements
Rank 1
Vimal asked on 08 Aug 2014, 01:20 PM
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.




1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 11 Aug 2014, 03:39 AM
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.
Tags
AsyncUpload
Asked by
Vimal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or