public function UploadedFile::getClientOriginalName

Returns the original file name.

It is extracted from the request from which the file has been uploaded. Then is should not be considered as a safe value.

@api

Return value

string|null The original name

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/UploadedFile.php, line 116

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

public function getClientOriginalName() {
  return $this->originalName;
}