3rd-Party Plugins

Dropzone

Dropzone is a powerful drag-and-drop file upload component that integrates seamlessly with the Metronic Tailwind CSS toolkit. It is an open-source project licensed under MIT.

Installation

Dropzone is installed via NPM as a third-party dependency by referring to package.json . During the Theme Installation process, it is compiled by the Build Tools into the /dist/assets/vendors/dropzone directory.

Require Assets

To use Dropzone in your pages, you need to include the Dropzone.js library and CSS from your vendors directory.
				
					<link href="{{ theme.getAssetUrl('vendors/dropzone/dropzone.css') }}" rel="stylesheet"/>
<script src="{{ theme.getAssetUrl('vendors/dropzone/dropzone.js') }}">
</script>

				
			
The KTDropzone component is automatically initialized when the page loads. Make sure to include the core bundle script before Dropzone.js.

Basic

A basic dropzone example demonstrating the default file upload configuration with Metronic Tailwind CSS styling. This example shows how to initialize a simple dropzone that automatically adapts to the Metronic design system. Files are uploaded automatically when added, and the component handles progress tracking and error states.
Choose a file or drag & drop here. JPEG, PNG, GIF, WebP, up to 2 MB.

Manual Upload

This example demonstrates dropzone with manual upload mode. Files are queued when added but not uploaded until the form is submitted. This allows users to select multiple files, review them, and then upload everything at once. The form submission waits for all queued uploads to complete before proceeding.
Choose a file or drag & drop here. Images will be queued and uploaded when you submit. Up to 5 files, 10 MB each.

Auto Upload

This example demonstrates dropzone with automatic upload mode. Files are uploaded immediately when added to the dropzone, without waiting for form submission. The submit button is enabled only after at least one file has been successfully uploaded. This mode is useful when you want immediate feedback and don't need to batch uploads.
Choose a file or drag & drop here. Images will be uploaded immediately. JPEG, PNG, GIF, WebP, up to 5 MB.