You are here

public function FormUploadedFile::getPathname in Drupal 10

Gets the path to the file.

Return value

string The path to the file.

Overrides UploadedFileInterface::getPathname

See also

https://php.net/manual/en/splfileinfo.getpathname.php

File

core/modules/file/src/Upload/FormUploadedFile.php, line 74

Class

FormUploadedFile
Provides a bridge to Symfony UploadedFile.

Namespace

Drupal\file\Upload

Code

public function getPathname() : string {
  return $this->uploadedFile
    ->getPathname();
}