ondrs/dropzone

This package is abandoned and no longer maintained. No replacement package was suggested.

File upload plugin for Nette framework

dev-master 2014-04-06 14:40 UTC

README

Nette tool for uploading files using dropzone.js

Dependencies

Instalation

composer.json

"ondrs/dropzone": "dev-master"

Usage

Register service in your config.neon. Set www dir and Aviary key.

dropzoneFactory: ondrs\dropzone\Factory(%wwwDir%, %aviaryKey%)

Create dropzone component in presenter

$this['dropzone'] = $this->dropzoneFactory->create('/path/to/dir');

Set form text input

$this['dropzone']->setInput( $this['form']['image'] );