protected function getFolderName(DataObject $object, $field)
    {
        // Initialise:
        
        $folder = null;
        
        // Locate File Handle Field:
        
        if ($fileField = $object->getCMSFields()->dataFieldByName($field)) {
            
            if ($fileField instanceof FileHandleField) {
                $folder = $fileField->getFolderName();
            }
            
        }
        
        // Answer Folder Name:
        
        return ($folder ? $folder : Upload::config()->uploads_folder);
    }