<?php sys_get_temp_dir(): string
<?php $parsedBody = []; foreach ($document->getParts() as $part) { if ($part->isFile()) { $tmpPath = tempnam(sys_get_temp_dir(), 'bref_upload_'); if ($tmpPath === false) { throw new RuntimeException('Unable to create a temporary directory'); }