This page provides solutions for common problems you may encounter while working with the Kendo UI Upload HtmlHelper.
Make sure that the action parameter is of type
Using HttpPostedFile does not work.
By default, ASP.NET limits the size of the maximum upload to 4MB. Additionally, IIS 7 and later limits the request size to 30MB.
Override these settings in the
web.config file. Below are listed the steps for you to follow when doing this.
Increase the allowed request size and execution timeout in the
<system.web> <!-- The request length is in kilobytes, execution timeout is in seconds --> <httpRuntime maxRequestLength="10240" executionTimeout="120" /> </system.web>
Increase the allowed request size for IIS 7 in the
<system.webServer> <security> <requestFiltering> <!-- The content length is in bytes --> <requestLimits maxAllowedContentLength="10485760"/> </requestFiltering> </security> </system.webServer>
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.
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.
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.
Below are listed the steps for you to follow when doing this.
- Change the controller Session State Behavior to
Disabled. For more information on this topic, refer to the article on concurrent requests in ASP.NET MVC
Enable request batching to reduce the number of concurrent requests.
.Async(async => async .Save("Save", "Home") .Batch(true) )
- Overview of the Upload HtmlHelper
- Upload HtmlHelper Modes of Operation
- Sending and Receiving Metadata with the Upload HtmlHelper
- How to Upload Files from Grid Popup Editors in ASP.NET MVC Applications
- How to Upload Files to Databases in ASP.NET MVC Applications
- Overview of the Kendo UI Upload Widget
- Overview of Telerik UI for ASP.NET MVC
- Fundamentals of Telerik UI for ASP.NET MVC
- Scaffolding in Telerik UI for ASP.NET MVC
- Telerik UI for ASP.NET MVC API Reference Folder
- Telerik UI for ASP.NET MVC HtmlHelpers Folder
- Common Issues in Telerik UI for ASP.NET MVC
- Tutorials on Telerik UI for ASP.NET MVC
- Validation Issues in Telerik UI for ASP.NET MVC
- Scaffolding Issues in Telerik UI for ASP.NET MVC
- Common Issues in the Grid ASP.NET MVC HtmlHelper Extension
- Excel Export with the Grid ASP.NET MVC HtmlHelper Extension
- Common Issues in the Spreadsheet ASP.NET MVC HtmlHelper Extension
- Common Issues in Kendo UI
- Performance Issues
- Content Security Policy
- Common Issues in Kendo UI Excel Export
- Common Issues in Kendo UI Charts
- Performance Issues in Kendo UI Widgets for Data Visualization
- Common Issues in Kendo UI ComboBox
- Common Issues in Kendo UI Diagram
- Common Issues in Kendo UI DropDownList
- Common Issues in Kendo UI Editor
- Common Issues in Kendo UI MultiSelect
- Common Issues in Kendo UI Scheduler
- Common Issues in Kendo UI Upload
- Common Issues Related to Styling, Appearance, and Rendering