Closed ZakkProjects closed 4 years ago
ok now i´ve got it to write the filename to database, but the file is not saving to webroot
Your form type is not file.
<?= $this->Form->create($gallery, ['type' = 'file') ?>
Check the examples https://github.com/FriendsOfCake/cakephp-upload/blob/master/docs/examples.rst
Hi i´ve installed the plugin with composer a added
$this->addPlugin('Josegonzalez/Upload');
to model\application.php.but after i´ve send the form file is not saved and no data are i database.
gallery/add.ctp
Gallery controller:
Gallery table