Log In
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Collapse]File Management
   [Expand]File Manager
   [Collapse]File Upload
     Overview - UploadControl
     File Processing Approaches
    [Expand]Visual Elements
  [Expand]Multi-Use Site Extensions
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Overview - UploadControl

The UploadControl allows files from the client computer to be uploaded and saved on the server.

To learn more about the UploadControl and see it in action, refer to its online demos.

Expanded Implementation Details

The UploadControl is realized by the UploadControlExtension class. Its instance can be accessed via the ExtensionsFactory.UploadControl helper method, which is used to add an UploadControl extension to a view. This method's parameter provides access to the UploadControl's settings implemented by the UploadControlSettings class, allowing you to fully customize the extension.

The UploadControl's client counterpart is represented by the MVCxClientUploadControl object.

Expanded Declaration

The UploadControl can be added to a view in the following manner.

View code (ASPX):

View code (Razor):


The UploadControl should be wrapped with a form to work properly.

In addition you should add an exception for the .ashx files to the RegisterRoutes method in the Global.asax.cs file. This exception allows for the correct processing requests from our handler.

The code result is demonstrated by the image below.

Is this topic helpful?​​​​​​​