Skip to main content

File Uploader

  • 3 minutes to read

FileUploader is a UI component that allows users to upload files to the server. Users can select files in the file explorer or drag and drop them onto the FileUploader area on the page.

Run Demo: FileUploader Read Tutorial

Getting Started

The FileUploader UI Control is based on the DevExtreme FileUploader component.

The following help topics explain how to add this control to your project:

Basic Syntax

@(Html.DevExtreme().FileUploader()
    .UploadUrl(Url.Action("UploadFile"))
)

Built-in Capabilities and Configuration Guides

API

Server-Side API

Initialization
Call the FileUploader() method to create a FileUploader control. This action initializes a FileUploaderBuilder instance. Use the instance methods to specify FileUploader options and event handlers.
Options
For a complete option list, see FileUploaderBuilder Members. For details on how to specify control options, refer to the following help topic: Specify Options.
Events
For available events, see Events. For details on how to handle events, refer to the following help topic: Handle Events and Define Callbacks.

Client-Side API

Options
If you need to specify the FileUploader options dynamically on the client side, use client-side API. For a complete option list, see DevExtreme FileUploader options.
Methods
For a list of available methods, see DevExtreme FileUploader methods. For details on how to call methods, refer to the following help topic: Call Methods.

Demos

Run Demo: FileUploader