Using $form->getValue('xxx') to uploadpath

Home Forums Quform PHP Using $form->getValue('xxx') to uploadpath

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  pvuoti 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #22704



    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'] = '';
    $config['uploadUrl'] = realpath(QUFORM_ROOT . '/uploads/' . $name); 

    but no results. How is it done properly?

    Thanks for the answer!




    Nevermind, i figured it out by myself

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.