You are here

public function UploadedFileInterface::getClientOriginalName in Drupal 10

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.

1 method overrides UploadedFileInterface::getClientOriginalName()
FormUploadedFile::getClientOriginalName in core/modules/file/src/Upload/FormUploadedFile.php
Returns the original file name.

File

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

Class

UploadedFileInterface
Provides an interface for uploaded files.

Namespace

Drupal\file\Upload

Code

public function getClientOriginalName() : string;