Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

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 Release date
8.x-2.11 Stable Aug 11, 2024
8.x-2.10 Stable Mar 4, 2024
8.x-2.9 Stable Feb 29, 2024
8.x-2.8 Stable Feb 21, 2023