[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]Tree List
  [Expand]Card View
  [Expand]Pivot Grid
   Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Collapse]File Management
   [Expand]File Manager
   [Collapse]File Upload
     File Processing Approaches
    [Expand]Visual Elements
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]Spell Checker
  [Expand]Query Builder
 [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]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

File Upload

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.


The Partial View should contain only the extension's code.

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?​​​​​​​