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

Nette 2.4 compatibility #42

Open jkuchar opened 8 years ago

jkuchar commented 8 years ago

thanks @akyn84 @lubo

JosefRypacek commented 8 years ago

Hi, thanks for your updates, but it's still not usable with nette 2.4. e.g. getInterfaces() instead of getInterfaces(self::$request) in getHead() or Environment in templates and probably much more. Is there any chance that it will be working again? Thanks

jkuchar commented 8 years ago

im accepting PR on this. we can make a conf call with @landrisek who is working on this

JosefRypacek commented 6 years ago

Can you please give me a note how to setup current MFU from nette-2-4-compatibility branch? Latest commit I was able to setup with nette 2.4 is dev-nette-2-4-compatibility#e53eac88cabddb27ed1d8b3ba942ca353620d49e and I have to use following:

bootstrap.php

error_reporting(~E_USER_DEPRECATED);
\MultipleFileUpload\MultipleFileUpload::register();
\MultipleFileUpload\MultipleFileUpload::setQueuesModel(new \MultipleFileUpload\Model\NetteDatabase\Queues($container->getByType('\Nette\Database\Context')));

and replace "->add(" with "->addHtml(" in MultipleFileUpload.php

jkuchar commented 6 years ago

To be honest, I do not know as I do not use this code on Nette 2.4, when you figure it out (XDebug is your friend), clould you please post it here?