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;
    }
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;
    }
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 ; }
Get the path to the upload dir

@param string        $sFieldId               The filename

@return string
Get the path to the upload dir