MyGit

echo511/Plupload

Fork: 10 Star: 10 (更新于 2024-11-06 00:45:15)

license: 暂无

Language: PHP .

Plupload component for Nette Framework

最后发布版本: v3.0.0 ( 2018-05-04 18:52:28)

GitHub网址

Plupload for Nette Framework

Installation

Install using composer:

$ composer require echo511/plupload:2.0.*

Register compiler extension: Echo511\Plupload\DI\PluploadExtension

Load javascript and css files required by plupload. Required javascript libraries are jQuery, jQueryUI, plupload.full.js, jquery.ui.plupload.js. Load corresponding css or style as you wish. Snapshots of required javascript, css assets can be found in assets folder.

If you wish to use ajax and Nette snippets, use extension: http://addons.nette.org/cs/nette-ajax-js If you prefer your solution then you need to adjust the latte file.

Usage

In presenter like this:

<?php

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;
	}

}

最近版本更新:(数据更新于 2024-09-21 18:49:21)

2018-05-04 18:52:28 v3.0.0

2017-01-17 03:23:10 v2.1.1

echo511/Plupload同语言 PHP最近更新仓库

2024-11-20 23:58:25 laravel/framework

2024-11-20 18:39:23 danielmiessler/SecLists

2024-11-16 21:54:23 w7corp/easywechat

2024-11-16 04:49:03 coollabsio/coolify

2024-11-13 23:19:14 symfony/symfony

2024-11-13 22:53:21 symfony/var-dumper