I am using Silverstripe 3.0 X .. I have created a new upload field which is working fine and uploading the files to Uploads folder inside assets.
I want to set the upload path to the root directory that is inside the public_html/ I know that we can set the path by using
$uploadField->setFolderName('customfolder');
// This will create a new folder inside assets/Uploads/customfolder
But I need to make some changes so that I can upload the file directly to the root folder. How can I achieve that?