Im trying to get an uploadform that will get a person name in dropdown list and some another info with uploaded files and sends it all to database (uploaded file as url). I would ike to have the uploaded file in folder of choosed name in dropdown list selection. I have tried to us $form->getValue(‘xxx’) to get a file in certain folder with persons name. Here is an example:
$name = $form->getValue('name');
/**
* The path to save any uploaded files. This folder must be writeable by the
* web server, you may need to set the folder permissions to 777 on Linux servers.
*/
$config['uploadPath'] = realpath(QUFORM_ROOT . '/uploads/' . $name);
/**
* Set this to the URL of the above folder to be sent links to uploaded
* files in the notification email. E.g.
*
* $config['uploadUrl'] = 'http://www.example.com/quform/uploads';
*/
$config['uploadUrl'] = realpath(QUFORM_ROOT . '/uploads/' . $name);