Returns the current upload directory

@return string
963446
public function getUploadPath()
    {
        $relativePath = date('Y/m');
        $fullPath = upload_path($relativePath);

        $this->makeUploadPath($fullPath);

        return [$fullPath, $relativePath];
    }
642533
public function getRootFolderName()
    {
        if ($this->owner->NewsRootFolderID) {
            return str_replace(ASSETS_DIR . '/', '', $this->owner->NewsRootFolder()->getRelativePath());
        }

        return Config::inst()->get($this->class, 'uploads_folder');
    }
295795
public function getDirectory()
    {
        $dir = clone $this;
        $dir->path = str_replace(DIRECTORY_SEPARATOR, '/', dirname($this->path));
        if (!$dir->path) $dir->path = '/';

        return $dir;
    }
1024041
private function _directory()
    {
        if ($this->isSFTP()) {
            // == DIRECTORY_SEPARATOR ? '' : $pwd;
            $pwd = @$this->ftp->pwd();
        } else {
            $pwd = @ftp_pwd($this->ftp);
        }
        if (!$pwd) {
            $this->fail("couldn't get current directory");
        }
    }
306407
public function getUploadedFiles()
    {
        if ($this->_uploadedFiles === null) {
            $this->getParsedBody(); // uploaded files are the part of the body and may be set while its parsing
            if ($this->_uploadedFiles === null) {
                $this->_uploadedFiles = $this->defaultUploadedFiles();
            }
        }
        return $this->_uploadedFiles;
    }
101112
public function getBasePath()
	{
		$groupParams = \Component::params('com_groups');
		$uploadPath  = $groupParams->get('uploadpath', '/site/groups');
		return $uploadPath . DS . $this->get('gidNumber');
	}
888908
protected function getCurrentFolder()
    {
        if ($this->currentFolder === false) {
            $currentFolder = null;
            $fID = $this->request->request->get('currentFolder', $this->request->query->get('currentFolder'));
            if ($fID && is_scalar($fID)) {
                $fID = (int) $fID;
                if ($fID !== 0) {
                    $node = Node::getByID($fID);
                    if ($node instanceof FileFolder) {
                        $currentFolder = $node;
                    }
                }
            }
            $this->setCurrentFolder($currentFolder);
        }

        return $this->currentFolder;
    }
68196
public function getMediumPath() {

		if( isset( $this->medium ) ) {

			return Yii::$app->fileManager->uploadDir . '/' . $this->medium;
		}

		return false;
	}
273508
public function currentPath()
    {
        $requestURI = $this->serverVar('REQUEST_URI');
        $sciptName  = $this->serverVar('SCRIPT_NAME');
        return rtrim(parse_url($requestURI? : $sciptName, PHP_URL_PATH), '/');
    }
1226790
public function GetCurrentViewDirectory () {
		$result = $this->GetCurrentViewFullPath();
		$lastSlashPos = mb_strrpos($result, '/');
		if ($lastSlashPos !== FALSE) {
			$result = mb_substr($result, 0, $lastSlashPos);
		}
		return $result;
	}
1344076
public function getCurrentDirectoryContent()
    {
        $content = File::glob($this->currentDir . DIRECTORY_SEPARATOR . '*');

        $content = array_map(function ($item) {
            return (object) [
                'path' => $this->getPathRelativeToBaseDir($item),
                'name' => Str::substr(
                    $item,
                    Str::length($this->currentDir) + 1
                ),
                'isFile' => File::isFile($item),
                'isDir' => File::isDirectory($item),
            ];
        }, $content);

        return $content;
    }
883087
public function compileUploadPath()
    {
        $uploadPath = str_replace(':root', ROOT, $this->upload_path);
        $uploadPath = preg_replace('/\\\/', '/', $uploadPath);

        return $uploadPath;
    }
965045
protected function getTraitDirectory()
    {
        if($config = $this->configFileMissing()) {
            return $this->error($config);
        }

        return 'app/' . rtrim($this->getConfigTraitDirectory(), '/\\') . '/';
    }
877040
public function upload() : string
    {
        if (!$this->_validateUpload()) {
            return '';
        }

        $result = $this->_uploadFile();

        if ('' === $result) {
            $this->flash->error('Unable to upload file to the specified directory.');
        }

        return $result;
    }
852796
public function getDefaultPath()
    {
        if (null === $this->defaultPath) {
            $this->setDefaultPath($this->getOptions()->getDefaultUploadPath());
        }

        return $this->defaultPath;
    }
1063568
function swift_get_base_upload_path() {
		if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) ) {
			return ABSPATH . UPLOADS;
		}

		$upload_path = trim( get_option( 'upload_path' ) );

		if ( empty( $upload_path ) || 'wp-content/uploads' == $upload_path ) {
			return WP_CONTENT_DIR . '/uploads';
		} elseif ( 0 !== strpos( $upload_path, ABSPATH ) ) {
			// $dir is absolute, $upload_path is (maybe) relative to ABSPATH
			return path_join( ABSPATH, $upload_path );
		} else {
			return $upload_path;
		}
	}
206090
protected function getStoragePath()
    {
        if ($override = $this->input->getOption('path')) {
            return $override;
        }
        $config = $this->getConfig();

        return getcwd().'/'.$config->path;
    }