Kendo UI for Vue Native Upload Overview
The Kendo UI for Vue Upload helps users send files from their file systems to dedicated server handlers which are configured to receive them.
The Kendo UI for Vue Upload component is part of the Kendo UI for Vue library of Vue UI components. It is distributed through NPM under the kendo-vue-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
- Action Buttons
- Custom rendering
- External Drop Zone
- Globalization
- Keyboard navigation
Installation
To initialize the Upload, either:
Using CDN
To use the Kendo UI for Vue Native Upload component with CDN, follow the below steps:
- Reference the
upload
andintl
packages.
<script src="https://unpkg.com/@progress/kendo-vue-intl@latest/dist/cdn/js/kendo-vue-intl.js"></script>
<script src="https://unpkg.com/@progress/kendo-vue-upload@latest/dist/cdn/js/kendo-vue-upload.js"></script>
- Reference one of the Kendo UI themes to style your components.
// Load the Kendo Default Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-default@latest/dist/all.css">
// Load the Kendo Bootstrap Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-bootstrap@latest/dist/all.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
// To load the Kendo Material Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-material@latest/dist/all.css">
// To load the Kendo Fluent Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-fluent@latest/dist/all.css">
- Follow the instructions in this article to activate your product license. You can skip this step if your application already contains a license key.
Initializing with Webpack
-
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-vue-upload @progress/kendo-licensing @progress/kendo-svg-icons
-
Once installed, import the package module.
// ES2015 module syntax import { Upload } from '@progress/kendo-vue-upload';
// CommonJS format const { Upload } = require('@progress/kendo-vue-upload');
-
You are required to install one of the Kendo UI for Vue 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 Kendo UI for Vue My License page to activate your license. You can skip this step if your application already contains a Kendo UI for Vue license file.
Dependencies
The Upload package requires the following peer dependencies that have to be installed by your application:
- vue 2.6.11* or 3.0.0*
- @progress/kendo-licensing
- @progress/kendo-svg-icons
Vue 2 is currently in its end-of-support phase till Nov 2024. After our last major release for 2024, Vue 2 will no longer be supported in the new versions of the Kendo UI for Vue components. Please check our Vue 2 End of Support article for more details.
Events
The following example demonstrates basic Upload events.
Support and Learning Resources
- Upload Homepage
- API Reference of the Upload Component
- Getting Started with Kendo UI for Vue - JavaScript (Online Guide)
- Getting Started with Kendo UI for Vue - TypeScript (Online Guide)
- Getting Started with Kendo UI for Vue - JavaScript + Options API (Online Guide)
- Getting Started with Kendo UI for Vue - TypeScript + Options API (Online Guide)
- Getting Started with Kendo UI for Vue - Nuxt 3 (Online Guide)
- Virtual Classroom (Training Course for Registered Users)
- Upload Forum
- Knowledge Base
- Kendo UI Productivity Tools extension for VS Code