WordPress\AiClientDependencies\Psr\Http\Message

UploadedFileInterface::getClientFilename │ public │ WP 1.0

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.

Метод класса: UploadedFileInterface{}

Хуков нет.

Возвращает

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

was provided.

Использование

$UploadedFileInterface = new UploadedFileInterface();
$UploadedFileInterface->getClientFilename(): ?string;

Код UploadedFileInterface::getClientFilename() WP 7.1.2

public function getClientFilename(): ?string;