RadAsyncUpload not working with Safari

Thread is closed for posting
5 posts, 0 answers
  1. Paresh Sen
    Paresh Sen avatar
    19 posts
    Member since:
    Sep 2009

    Posted 15 Jul 2013 Link to this post


    I have created a basic asp.net application with below code:

    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" ChunkSize="1048576" />

    When I run the application, files are getting uploaded to the app_data folder for IE\Chrome.

    However, for safari the uploaded file is not having the valid file extension and sometimes it's not uploading the files.

    There is no code added in cs file and the config file contains below configuration:




    <requestLimits maxAllowedContentLength="2199023255"/>

    <fileExtensions allowUnlisted="true"/>




    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" name="Telerik.Web.UI.WebResource"/>


    <directoryBrowse enabled="true"/>


    Any pointers will be appreciated.


  2. John
    John avatar
    3 posts
    Member since:
    Sep 2011

    Posted 27 Nov 2013 Link to this post

    I have the exact same issue.  I am using a brand new iPad just purchased yesterday using Mobile Safari 7 and when I select a .jpg file (this is an allowed extension), the extension is not recognized as a valid extension.  My code is below.  I am also using Q3 2013 Telerik controls.

    Any input from Telerik would be appreciated.  Thank you!

    <telerik:RadAsyncUpload runat="server" ID="radUpload" OnClientFilesUploaded="OnClientFilesUploaded"

    AllowedFileExtensions="jpg,jpeg,png,gif,bmp" MaxFileSize="1048576"

    UploadedFilesRendering="BelowFileInput" AutoAddFileInputs="false"


  3. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 28 Nov 2013 Link to this post


    Some files names that are valid on Mac/IOS devices are invalid for Windows. That's why they cannot be stored on a Windows File System. For example it is not possible to create a file without extension on a Windows machine. To workaround this issue you may handle RadAsyncUpload's OnClientValidationFailed event and tell the user that the uploaded file has invalid name:
    function OnClientValidationFailed(sender, args) {
        var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
        if (args.get_fileName().lastIndexOf('.')!=-1) {//this checks if the extension is correct
            if (sender.get_allowedFileExtensions().indexOf(fileExtention)==-1) {
                alert("Wrong Extension!");
            else {
                alert("Wrong file size!");
        else {
            alert("not correct extension!");

    Hristo Valyavicharski
    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 the blog feed now.
  4. John
    John avatar
    3 posts
    Member since:
    Sep 2011

    Posted 17 Dec 2013 Link to this post


    I must not be explaining my situation correctly.

    The RadAsyncUpload control works great if using IE, Chrome, etc. but not when I use the iPad Safari browser.  The uploaded item displays a red indicator next to the name of the file to be uploaded, as if to say the extension is not valid. 


  5. John
    John avatar
    3 posts
    Member since:
    Sep 2011

    Posted 17 Dec 2013 Link to this post

    The issue was the MaxFileSize.  The image that I was trying to upload was too large.

Back to Top