/**
  * Given a request, ensure that the current field is aware of the selected folder
  *
  * @param SS_HTTPRequest $request
  */
 protected function updateFolderName($request)
 {
     // check if allowed to select folder
     if (!$this->canSelectFolder()) {
         return;
     }
     // Get path from upload
     $folderID = $request->requestVar("{$this->Name}/folder");
     $path = $this->folderPathFromID($folderID);
     if ($path !== false) {
         $this->setFolderName($path);
         $this->selectField->setValue($folderID);
     }
 }