function InputStreamUploadedFile::getClientOriginalName

Same name and namespace in other branches
  1. 11.x core/modules/file/src/Upload/InputStreamUploadedFile.php \Drupal\file\Upload\InputStreamUploadedFile::getClientOriginalName()

Returns the original file name.

The file name is extracted from the request that uploaded the file and as such should not be considered a safe value.

Return value

string The original file name supplied by the client.

Overrides UploadedFileInterface::getClientOriginalName

File

core/modules/file/src/Upload/InputStreamUploadedFile.php, line 27

Class

InputStreamUploadedFile
An uploaded file from an input stream.

Namespace

Drupal\file\Upload

Code

public function getClientOriginalName() : string {
    return $this->clientOriginalName;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.