You are here

public function UploadedFileInterface::getClientFilename in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/UploadedFileInterface.php \Psr\Http\Message\UploadedFileInterface::getClientFilename()

Retrieve the filename sent by the client.

Do not trust the value returned by this method. A client could send a malicious filename with the intention to corrupt or hack your application.

Implementations SHOULD return the value stored in the "name" key of the file in the $_FILES array.

Return value

string|null The filename sent by the client or null if none was provided.

2 methods override UploadedFileInterface::getClientFilename()
UploadedFile::getClientFilename in vendor/zendframework/zend-diactoros/src/UploadedFile.php
UploadedFile::getClientFilename in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/UploadedFile.php
Retrieve the filename sent by the client.

File

vendor/psr/http-message/src/UploadedFileInterface.php, line 107

Class

UploadedFileInterface
Value object representing a file uploaded through an HTTP request.

Namespace

Psr\Http\Message

Code

public function getClientFilename();