Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UploadedFileInterface.php

function UploadedFileInterface::getRealPath

Gets the absolute path to the file.

Return value

string|false The path to the file, or FALSE if the file does not exist.

See also

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

2 methods override UploadedFileInterface::getRealPath()
FormUploadedFile::getRealPath in core/modules/file/src/Upload/FormUploadedFile.php
Gets the absolute path to the file.
InputStreamUploadedFile::getRealPath in core/modules/file/src/Upload/InputStreamUploadedFile.php
Gets the absolute path to the file.

File

core/modules/file/src/Upload/UploadedFileInterface.php, line 42

Class

UploadedFileInterface
Provides an interface for uploaded files.

Namespace

Drupal\file\Upload

Code

public function getRealPath();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal