Componette

Componette

jkuchar

jkuchar / MultipleFileUpload v1.2.0

Upload more files at once using Nette Forms. More front-end interfaces available. (fallback between them is available)

download-cloud-line composer require jkuchar/multiplefileupload

MultipleFileUpload

SEEKING FOR NEW MAINTAINER: As I do not use this code anymore, I rarely contribute to this repository. Feed free to fork it and continue with development. I will be happy to give you access to this repository and composer package.

Code Climate

MultipleFileUpload (shorter MFU) is an add-on that makes uploading thousands of huge files piece of cake. Just 4 simple steps and you will not need to deal with chunking, autentization of uploads or browser compatibility.

Thanks to multi-backend design you can change your file storage just by changing line in documentation. Currently allows you to pick up one of these storages SQLite3 (default), SQLite and Dibi (MySQL, PostgreSQL, MSSql, ...).

This add-on also allows you to change UI library just by changing one config property. Currently are supported PlUpload, Uploadify, SwfUpload and standard HTML4 form fields. You can add more interfaces - than the best supported for client's browser will be automatically chosen.

Installation

  1. Install composer if you don't have it yet
  2. run composer require jkuchar/multiplefileupload:1.*
  3. Copy files from libs/jkuchar/multiplefileupload/public to www/MultipleFileUpload and include them into your template.
  4. Register addon and you are done!

For more information see example project with this addon.

Usage

$f = new Form($this,$name);

$f->addMultipleFileUpload("exampleUploadField1","Upload field 1", /*max num. of files*/ 20)
  ->addRule('MultipleFileUpload\MultipleFileUpload::validateFilled',"You must upload at least one file")
  ->addRule('MultipleFileUpload\MultipleFileUpload::validateFileSize',"Files you've selected are too big.", 1024); //kB

Challenge

Uploadify and SwfUpload are a little unmaintained. If you are interested you can get commit right to this repo. First create pull request and if it is ok, drop me a line that you want to have commit rights.

Full documentation

  • v1.2.0 Relased version 1.2.0

    • added Nette\Database backend
  • v1.1.0 Version 1.1.0

    • merged two main repos Ciki/MultipleFileUpload and jkuchar/MultipleFileUpload
    • cleaned code
    • updated docs
    • updated JS code to nette.ajax.js insted of nette-ajax-form.js
    • initJS.js -> initJS.latte
    • removed jquery.liverquery dependency
    • [BC] removed MFU version from code

    for more info look into https://github.com/jkuchar/MultipleFileUpload/issues?milestone=1&page=1&state=closed

  • v1.0.0 First release for Nette 2.0

    Highlights

    • Support for SQLite3
    • The most current plupload
    • Support for Nette 2.0
  • v0.9.0 v0.9.0

    Last version for Nette 0.9.

bar-chart-fill

Statistics

download-cloud-fill
4219
star-fill
10
bug-fill
20
flashlight-fill
5.6y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>= 5.3.0)
nette/nette (>= 2.0)
Componette Componette felix@nette.org