code/Forms/UploadField.php
protected function getFolderID()
    {
        $folderName = $this->getFolderName();
        if (!$folderName) {
            return 0;
        }
        $folder = Folder::find_or_make($folderName);
        return $folder ? $folder->ID : 0;
    }
protected function getFolderID()
    {
        $folderName = $this->getFolderName();
        if (!$folderName) {
            return 0;
        }
        $folder = Folder::find_or_make($folderName);
        return $folder ? $folder->ID : 0;
    }
protected function getFolderID ( ) { $ folderName = $ this -> getFolderName ( ) ; if ( ! $ folderName ) { return 0 ; } $ folder = Folder :: find_or_make ( $ folderName ) ; return $ folder ? $ folder -> ID : 0 ; }
Get ID of target parent folder

@return int
Get ID of target parent folder