An open API service indexing awesome lists of open source software.

https://github.com/echo511/plupload

Plupload component for Nette Framework
https://github.com/echo511/plupload

Last synced: 10 months ago
JSON representation

Plupload component for Nette Framework

Awesome Lists containing this project

README

          

Plupload for Nette Framework
============================

Installation
------------

Install using composer:
```sh
$ 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
controlFactory->create();
$plupload->onFileUploaded[] = function(UploadQueue $uploadQueue) {
...
};
$plupload->onUploadComplete[] = function(UploadQueue $uploadQueue) {
...
};
return $plupload;
}

}
```