MultipleFileUpload addon – general discussion

5 years ago

Honza Kuchař
Backer | 1655
+
0
-

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.

More on the addon page: https://addons.nette.org/…lefileupload

released 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

from 1.0.0

  • Support for SQLite3
  • The most current plupload
  • Support for Nette 2.0

5 years ago

stewestw
Member | 42
+
0
-

hi please, is it possible to make multiplefileupload work with nette\database on current version 1.1.0?

https://github.com/…load/pull/32
thank you.

5 years ago

Honza Kuchař
Backer | 1655
+
0
-

I do not use Nette\Database backend at all. Could you please send a pull request?

@MatúšMatula Do you have any idea what goes wrong wrong with Nette\Database backend?

5 years ago

stewestw
Member | 42
+
0
-

hi i found my mistake. the problem was with db connection
i edit bootstrap.php like this:

// Setup MultipleFileUpload

$db = new Nette\Database\Connection('mysql:host=127.0.0.1;dbname=database_name', 'root', '');

MultipleFileUpload\MultipleFileUpload::register();

MultipleFileUpload\MultipleFileUpload::getUIRegistrator()
    ->clear()
    ->register('MultipleFileUpload\UI\Uploadify');

MultipleFileUpload\MultipleFileUpload::setQueuesModel(
        new MultipleFileUpload\Model\NetteDatabase\Queues(
                new Nette\Database\Context($db)
                )
        );

5 years ago

Honza Kuchař
Backer | 1655
+
0
-

This looks good, so is your issue solved?

5 years ago

stewestw
Member | 42
+
0
-

yes, its solved. thank you.