function UploadedFileInterface::getClientOriginalName
Same name in other branches
- 10 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getClientOriginalName()
- 11.x core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::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.
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\UploadCode
public function getClientOriginalName() : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.