Skip to main content
Version: Fegg 5.x (next)

Upload::getUploadDir

Get the upload directory

Description​

public string Upload::getUploadDir()

Returns the directory set by Upload::setUploadDir, or an empty string when none is set.

Example​

Controller
use Fegg\Tool\Upload;

$upload = new Upload();
$upload->setUploadDir('path/to/up_dir');

echo $upload->getUploadDir(); // -> "path/to/up_dir"