What do I do to change the default upload location for the files uploaded through Userforms? Isn't there a config setting or a a file to modify?
The general "Uploads" directory can easily become a mess...
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
What do I do to change the default upload location for the files uploaded through Userforms? Isn't there a config setting or a a file to modify?
The general "Uploads" directory can easily become a mess...
Not yet. But this is on the roadmap http://open.silverstripe.org/ticket/5563
If you want to change the directory that the file is uploaded to, in UserDefinedForms.php just add a third variable to the line
$upload->loadIntoFile($_FILES[$field->Name], $file);
with the directory that you want the files to go to. The directory is relative to the assets folder so
$upload->loadIntoFile($_FILES[$field->Name], $file, 'Uploads/folder');
will upload to 'assets/Uploads/folder'