Module Description
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
* Download this module
* Download DropzoneJS library and place it in the libraries folder (/libraries). You need the full library which is easily available from the Github repo (the full path to the required files should be /libraries/dropzone/dist/min/dropzone.min.js and /libraries/dropzone/dist/min/dropzone.min.css).
* Install dropzonejs the usual way.
* Remove "test" folder from libraries folder as it could constitute a security risk to your site. See http://drupal.org/node/1189632 for more info.
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 #1
Run composer require wikimedia/composer-merge-plugin
Update the root composer.json file. For example:
"extra": { "merge-plugin": { "include": [ "web/modules/contrib/dropzonejs/composer.libraries.json" ] } } Run composer require drupal/dropzonejs enyo/dropzone, the DropzoneJS library will be installed to the libraries folder automatically.
The composer way #2
Add a custom package to the root composer.json file. Its repositories key looks like the following.
"repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "package", "package": { "name": "enyo/dropzone", "version": "5.7.1", "type": "drupal-library", "dist": { "url": "https://github.com/enyo/dropzone/archive/v5.7.1.zip", "type": "zip" } } } ] Run composer require drupal/dropzonejs enyo/dropzone, the DropzoneJS library will be installed to the libraries folder automatically as well.
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
8.x-2.x version is intended to be used with core Media entity that will ship with 8.4.0.
How to install The non-composer way
* Download this module
* Download DropzoneJS library and place it in the libraries folder (/libraries). You need the full library which is easily available from the Github repo (the full path to the required files should be /libraries/dropzone/dist/min/dropzone.min.js and /libraries/dropzone/dist/min/dropzone.min.css).
* Install dropzonejs the usual way.
* Remove "test" folder from libraries folder as it could constitute a security risk to your site. See http://drupal.org/node/1189632 for more info.
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 #1
Run composer require wikimedia/composer-merge-plugin
Update the root composer.json file. For example:
"extra": { "merge-plugin": { "include": [ "web/modules/contrib/dropzonejs/composer.libraries.json" ] } } Run composer require drupal/dropzonejs enyo/dropzone, the DropzoneJS library will be installed to the libraries folder automatically.
The composer way #2
Add a custom package to the root composer.json file. Its repositories key looks like the following.
"repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "package", "package": { "name": "enyo/dropzone", "version": "5.7.1", "type": "drupal-library", "dist": { "url": "https://github.com/enyo/dropzone/archive/v5.7.1.zip", "type": "zip" } } } ] Run composer require drupal/dropzonejs enyo/dropzone, the DropzoneJS library will be installed to the libraries folder automatically as well.
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
8.x-2.x version is intended to be used with core Media entity that will ship with 8.4.0.
Module Link
Project Usage
57955
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the integration of DropzoneJS, an open source library for drag'n'drop file uploads with image previews, into Drupal websites.
Data Name
dropzonejs