original_string: protected function getUploadDir($sFieldId)
      {
          // Default upload dir
          $sDefaultUploadDir = $this->getOption('upload.default.dir');
          $sUploadDir = $this->getOption('upload.files.' . $sFieldId . '.dir', $sDefaultUploadDir);
          $sUploadDir = rtrim(trim($sUploadDir), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
          // Verify that the upload dir exists and is writable
          if(!is_writable($sUploadDir))
          {
              throw new \Jaxon\Exception\Error($this->trans('errors.upload.access'));
          }
          $sUploadDir .= $this->sUploadSubdir;
          if(!@mkdir($sUploadDir))
          {
              throw new \Jaxon\Exception\Error($this->trans('errors.upload.access'));
          }
          return $sUploadDir;
      }
code: protected function getUploadDir($sFieldId)
      {
          // Default upload dir
          $sDefaultUploadDir = $this->getOption('upload.default.dir');
          $sUploadDir = $this->getOption('upload.files.' . $sFieldId . '.dir', $sDefaultUploadDir);
          $sUploadDir = rtrim(trim($sUploadDir), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
          // Verify that the upload dir exists and is writable
          if(!is_writable($sUploadDir))
          {
              throw new \Jaxon\Exception\Error($this->trans('errors.upload.access'));
          }
          $sUploadDir .= $this->sUploadSubdir;
          if(!@mkdir($sUploadDir))
          {
              throw new \Jaxon\Exception\Error($this->trans('errors.upload.access'));
          }
          return $sUploadDir;
      }
code_tokens: protected function getUploadDir ( $ sFieldId ) { // Default upload dir $ sDefaultUploadDir = $ this -> getOption ( 'upload.default.dir' ) ; $ sUploadDir = $ this -> getOption ( 'upload.files.' . $ sFieldId . '.dir' , $ sDefaultUploadDir ) ; $ sUploadDir = rtrim ( trim ( $ sUploadDir ) , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ; // Verify that the upload dir exists and is writable if ( ! is_writable ( $ sUploadDir ) ) { throw new \ Jaxon \ Exception \ Error ( $ this -> trans ( 'errors.upload.access' ) ) ; } $ sUploadDir .= $ this -> sUploadSubdir ; if ( ! @ mkdir ( $ sUploadDir ) ) { throw new \ Jaxon \ Exception \ Error ( $ this -> trans ( 'errors.upload.access' ) ) ; } return $ sUploadDir ; }
docstring: Get the path to the upload dir
  
  @param string        $sFieldId               The filename
  
  @return string
docstring_tokens: Get the path to the upload dir