Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

DropzoneJS

Security covered Under active development 70,185 sites

This module integrates the DropzoneJS library into Drupal, enabling drag-and-drop file uploads with image previews. It provides a form element and widgets for creating file or media entities, with an option for inline entity forms for media.

Drupal integration for DropzoneJS - an open source library that provides drag’n’drop file uploads with image previews.

How to install

The non-composer way

  1. Download this module
  2. Download DropzoneJS library and place it in the libraries folder (/libraries). Use the dist.zip and put the files in the libraries/dropzone folder (the full path to the required files should be /libraries/dropzone/dropzone-min.js and /libraries/dropzone/dropzone.css).
  3. Install dropzonejs the usual way.

Note: if you use bower to fetch the library, be sure to fetch the package named dropzone (NOT dropzonejs) that points to the correct repository.

The composer way

This assumes that the type:drupal-library is set up to be installed in
web/libraries.

Add a custom package to the root composer.json file. Its repositories key
looks like the following. Adjust version numbers according to current release.

Dropzone 5:

    "repositories": [
        ...
        {
            "type": "package",
            "package": {
                "name": "enyo/dropzone",
                "version": "5.9.3",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip",
                    "type": "zip"
                }
            }
        }
    ]

Dropzone 6:

    "repositories": [
        ...
        {
            "type": "package",
            "package": {
                "name": "enyo/dropzone",
                "version": "6.0.0-beta.2",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/dropzone/dropzone/releases/download/v6.0.0-beta.2/dist.zip",
                    "type": "zip"
                }
            }
        }
    ]

Run composer require drupal/dropzonejs enyo/dropzone, the DropzoneJS library
will be installed to the `libraries` folder automatically as well.

To also install exif-js for optional client-resize, define another repository.

    {
        "type": "package",
        "package": {
            "name": "exif-js/exif-js",
            "version": "v2.3.0",
            "type": "drupal-library",
            "dist": {
                "type": "zip",
                "url": "https://github.com/exif-js/exif-js/archive/refs/tags/v2.3.0.zip",
            }
        }
    },

And require it with composer require exif-js/exif-js

Current module state

This module currently provide an element that can be used in forms and three Entity Browser widgest:

  • a simple one that generates (default core) file entities
  • one that generates Media entities
  • one that uses Inline entity form to provide forms for generated media entities
Drupal 9–11

Ask your assistant about DropzoneJS

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • file Drupal core

Required by

2 tracked projects depend on this one

Activity

Tracked releases
4
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
8.x-2.11 Stable 9–11 Aug 11, 2024
8.x-2.10 Stable 9–10 Mar 4, 2024
8.x-2.9 Stable 9–10 Feb 29, 2024
8.x-2.8 Stable 9–10 Feb 21, 2023