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);