Getting Started with KendoReact Upload
The KendoReact Upload helps users send files from their file systems to dedicated server handlers which are configured to receive them.
The KendoReact Upload component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-upload package.
Basic Usage
The following example demonstrates the Upload in action.
Functionality and Features
- Disabled Upload
- Modes of operation
- Credentials and additional data
- File processing
- File restrictions
- Dragging and dropping
- Custom rendering
- External Drop Zone
- Globalization
- Keyboard navigation
Installation
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-react-upload @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { Upload } from '@progress/kendo-react-upload';
// CommonJS format const { Upload } = require('@progress/kendo-react-upload');
You are required to install one of the KendoReact themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the KendoReact My License page to activate your license. You can skip this step if your application already contains a KendoReact license file.
Dependencies
The Upload package requires the following peer dependencies that have to be installed by your application:
- react
- react-dom
- @progress/kendo-licensing
Events
The following example demonstrates basic Upload events.