Skip to content

Project that allow you to upload more files to server using Nette Forms. You can choose from various front-end interfaces and define your own fallbacks between them. It is integrated with Nette Forms.

License

Notifications You must be signed in to change notification settings

schneidermichal/MultipleFileUpload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultipleFileUpload

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

Full documentation

Forks

Fortunately everything important has already been merged back to this repo.

About

Project that allow you to upload more files to server using Nette Forms. You can choose from various front-end interfaces and define your own fallbacks between them. It is integrated with Nette Forms.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.6%
  • PHP 10.1%
  • CSS 1.3%