PHP code example of echo511 / plupload
1. Go to this page and download the library: Download echo511/plupload 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/ */
echo511 / plupload example snippets
use Nette\Application\UI\Presenter;
use Echo511\Plupload\Entity\UploadQueue;
class HomePresenter extends Presenter
{
/** @var \Echo511\Plupload\Control\IPluploadControlFactory @inject */
public $controlFactory;
public function createComponentPlupload()
{
$plupload = $this->controlFactory->create();
$plupload->onFileUploaded[] = function(UploadQueue $uploadQueue) {
...
};
$plupload->onUploadComplete[] = function(UploadQueue $uploadQueue) {
...
};
return $plupload;
}
}