bigfork/silverstripe-dropzone

Dropzone.js field for SilverStripe.

Installs: 8 499

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 3

Open Issues: 4

Type:silverstripe-vendormodule

2.0.3 2024-07-25 15:07 UTC

README

A Dropzone.js field for SilverStripe 5 - designed to be used on the frontend, not in the CMS.

Work in progress

Config options are listed here: https://www.dropzonejs.com/#configuration. Most config options should already work, support for some hasn’t been added yet.

Stuff that works:

  • File uploads
  • Multiple files per request (->setDropzoneConfigOption('uploadMultiple', true))
  • "Chunked" file uploads (->setDropzoneConfigOption('chunking', true))
  • Removing existing files

Stuff that doesn't work:

  • Re-ordering files - Dropzone.js doesn't appear to support this out of the box
  • Server-side thumbnail generation

Contributing

Dropzone forces jQuery as a dependency: dropzone/dropzone#1495 / https://gitlab.com/meno/dropzone/-/issues/2. So before compiling, please manually remove the following lines from dropzone.js (in node_modules): https://github.com/enyo/dropzone/blob/08b9e0a763b54a685404dea523a9c54242fbe1b9/dist/dropzone.js#L3200-L3207