1. Go to this page and download the library: Download codingo-me/dropzoner 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/ */
codingo-me / dropzoner example snippets
Codingo\Dropzoner\DropzonerServiceProvider::class
@
namespace App\Listeners;
use Codingo\Dropzoner\Events\ImageWasUploaded;
class ImageUploadListener
{
/**
* Example listener for image uploads
* Event carries original_filename
* and server_filename
*
* @param ImageWasUploaded $event
*/
public function handle(ImageWasUploaded $event)
{
\Log::info('Inside ImageUploadListener, image was uploaded: ' . $event->server_filename);
}
}