Upload Overview

The Upload helps users send files from their file systems to dedicated server handlers which are configured to receive them.

Basic Usage

The following example demonstrates the Upload in action.

import React from 'react';
import ReactDOM from 'react-dom';
import { Upload } from '@progress/kendo-react-upload';

class App extends React.Component {
    render() {
        return (
            <Upload
                batch={false}
                multiple={true}
                defaultFiles={[]}
                withCredentials={false}
                saveUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/save'}
                removeUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/remove'}
            />
        );
    }
}

ReactDOM.render(
    <App />,
    document.querySelector('my-app')
);

Installation

  1. Download and install the package. Use Node.js v5.0.0 or later.

    npm install --save @progress/kendo-react-upload
  2. 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');
  3. You are required to install one of the Kendo UI themes to style your components. For more information on how to add the styles, refer to the article on getting started.

Dependencies

The Upload package requires the following peer dependencies that have to be installed by your application:

  • react
  • react-dom

Functionality and Features

In this article