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

Breadcrumb

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

function UploadedFile::getClientOriginalPath

Returns the original file full path.

It is extracted from the request from which the file has been uploaded. This should not be considered as a safe value to use for a file name/path on your servers.

If this file was uploaded with the "webkitdirectory" upload directive, this will contain the path of the file relative to the uploaded root directory. Otherwise this will be identical to getClientOriginalName().

File

vendor/symfony/http-foundation/File/UploadedFile.php, line 110

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

public function getClientOriginalPath() : string {
    return $this->originalPath;
}

API Navigation

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