jkuchar / MultipleFileUpload

Upload more files at once using Nette Forms. More front-end interfaces available. (fallback between them is available)
http://addons.nette.org/cs/multiplefileupload
BSD 3-Clause "New" or "Revised" License
10 stars 11 forks source link

Test Nette\Database backend for thread-safe #33

Open jkuchar opened 10 years ago

jkuchar commented 10 years ago

1) Set UI to use hi parallelism (10 threads) 2) Upload 1 000 small files, all must be correctrly uploaded

stewestw commented 9 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));