Open jkuchar opened 10 years ago
for those, who will try to run MultipleFileUpload with Nette/Database in Nette 2.3, this worked for me:
// Setup MultipleFileUpload in bootstrap.php
$db = $container->isCreated('database.default.context') ? $container->getService('database.default.context') : $container->createService('database.default.context');
MultipleFileUpload\MultipleFileUpload::register();
MultipleFileUpload\MultipleFileUpload::getUIRegistrator() ->clear() ->register('MultipleFileUpload\UI\Uploadify');
MultipleFileUpload\MultipleFileUpload::setQueuesModel(new MultipleFileUpload\Model\NetteDatabase\Queues($db));
1) Set UI to use hi parallelism (10 threads) 2) Upload 1 000 small files, all must be correctrly uploaded