When using setFolderName like this:
$fields->addFieldToTab('Root.ProjectImages', $thumbField = new UploadField('ProjectThumb','Main Thumbnail'));
$thumbField->setFolderName('portfolio/project-images/'.$this->URLSegment);
My uploads return a 403 error as the folder created only has 644 permissions and not 755. The upload works but just shows a question mark in the thumbnail box..
I can manually change the permissions my self but this is not practical for other users etc.
How can I fix this thanks?