You are here

public function UploadedFile::getClientOriginalName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/File/UploadedFile.php \Symfony\Component\HttpFoundation\File\UploadedFile::getClientOriginalName()

Returns the original file name.

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

Return value

string|null The original name

1 call to UploadedFile::getClientOriginalName()
UploadedFile::getErrorMessage in vendor/symfony/http-foundation/File/UploadedFile.php
Returns an informative upload error message.

File

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

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

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