<?php tempnam(string $directory, string $prefix): string|false
<?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'); }