Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Access default directories

Complete path to the uploads directory (getFullUploadPath)

Scroll Prev Top Next More

This function allows you to determine the complete path to the uploads directory.

Parameter

Type

Description

$path

string

Relative file path (optional)

The function returns the full path to the stated file below the uploads directory.

Please note: In case getTableValue and getSubtableValue are used, the parameter $rawValue must be called with true so that the actual file name is returned on the file system.

Example 1:

// Determining the path to the uploads directory

$uploadsPath = $this->getFullUploadPath();

 

// Determining the path to the attached file

$attachmentRelPath = $this->getTableValue('ATTACHMENT', true);

$attachmentPath = $this->getFullUploadPath($attachmentRelPath);

Example 2:

// Determining the path to the uploads directory

$uploadsPath = $this->getFullUploadPath();

 

// Determining the path to the attached file

$attachmentRelPath = $this->getSubtableValue('ATTACHMENT', 1, 'MATERIAL', true);

$attachmentPath = $this->getFullUploadPath($attachmentRelPath);