Edit this page

Common Issues

This page provides solutions for common problems you may encounter while working with the Kendo UI Upload HtmlHelper.

Uploading

No Files Are Uploaded

Solution

Make sure that the action parameter is of type IEnumerable<HttpPostedFileBase> or HttpPostedFileBase.

Important

Using HttpPostedFile does not work.

The Upload of Large Files Is Impossible

By default, ASP.NET limits the size of the maximum upload to 4MB. Additionally, IIS 7 and later limits the request size to 30MB.

Solution

Override these settings in the web.config file. Below are listed the steps for you to follow when doing this.

  1. Increase the allowed request size and execution timeout in the httpRuntime section.

    Example
        <system.web>
            <!-- The request length is in kilobytes, execution timeout is in seconds  -->
            <httpRuntime maxRequestLength="10240" executionTimeout="120" />
        </system.web>
    
  2. Increase the allowed request size for IIS 7 in the requestFiltering section.

    Example
        <system.webServer>
                <security>
                    <requestFiltering>
                        <!-- The content length is in bytes  -->
                        <requestLimits maxAllowedContentLength="10485760"/>
                    </requestFiltering>
                </security>
        </system.webServer>
    

The Upload Never Ends in Safari on iOS and OSX

The issue is caused by a bug in Safari and occurs only when the Windows authentication and disabled Anonymous Authentication setting is enabled. It is reproducible with a standard <input type="file" name="file" enctype="multipart/form-data" /> HTML element in ASP.NET MVC and Web Forms applications.

Important

Because the File Browser dialogs of the Kendo UI Editor for ASP.NET MVC rely on the Upload control, the issue might occur when uploading images and other files through them on MAC Safari.

Solution

The solution solely depends on a dedicated decision by Apple about whether and when to fix this browser issue. However, you can work around it by applying the suggestions provided in the Programmatically enable or disable anonymous authentication in IIS StackOverflow thread. This means to build a separate web service for file upload with an authentication setting, such as Anonymous for Safari scenarios, and the main application authentication setting, such as Windows Authentication.

Requests

Requests to ASP.NET MVC Actions Are Blocked during Upload

Solution

Below are listed the steps for you to follow when doing this.

  1. Change the controller Session State Behavior to ReadOnly or Disabled. For more information on this topic, refer to the article on concurrent requests in ASP.NET MVC

  2. Enable request batching to reduce the number of concurrent requests.

    Example
        .Async(async => async
            .Save("Save", "Home")
            .Batch(true)
        )
    

See Also

Other articles on Telerik UI for ASP.NET MVC and on the Upload:

Other articles on troubleshooting: