1. Go to this page and download the library: Download ajaz/php-dropzone-widget 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/ */
ajaz / php-dropzone-widget example snippets
<div class="container">
use Ajaz\widget\Dropzone;
, //your server side upload action
'options'=>[
'maxFilesize'=> '2',
'acceptedFiles'=>'image/*',
'dictDefaultMessage'=>'DRAG & DROP Your files'
],
'clientEvents' => [
'complete' => "function(file){console.log(file)}",
'removedfile' => "function(file){alert(file.name + ' is removed')}"
],
]);
$dropzone->run();