PHP code example of xddesigners / silverstripe-dropzonefield
1. Go to this page and download the library: Download xddesigners/silverstripe-dropzonefield library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xddesigners / silverstripe-dropzonefield example snippets
XD\DropzoneField\Forms\DropzoneField::create('Image');
DropzoneField::create('Image', _t(__CLASS__ . '.Image', 'Profile image'), $this->Image() )
->setFolderName('profile')
->setIsMultiUpload(false)
->setAddRemoveLinks(true);