xddesigners / silverstripe-dropzonefield
DropzoneJS frond-end upload field for SilverStripe.
Installs: 1 357
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 2
Type:silverstripe-vendormodule
Requires
- php: >=5.6.0
- silverstripe/framework: ^4
This package is auto-updated.
Last update: 2024-10-14 10:26:52 UTC
README
A Dropzone.js file upload field for SilverStripe. Use on frond end forms.
Installation
Install the module trough composer:
composer require xddesigners/silverstripe-dropzonefield
Usage
XD\DropzoneField\Forms\DropzoneField::create('Image');
Enable frontend editing of image object
DropzoneField::create('Image', _t(__CLASS__ . '.Image', 'Profile image'), $this->Image() ) ->setFolderName('profile') ->setIsMultiUpload(false) ->setAddRemoveLinks(true);