Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UploadedFile.php

function UploadedFile::getClientOriginalName

Returns the original file name.

It is extracted from the request from which the file has been uploaded. This should not be considered as a safe value to use for a file name on your servers.

1 call to UploadedFile::getClientOriginalName()
UploadedFile::getErrorMessage in vendor/symfony/http-foundation/File/UploadedFile.php
Returns an informative upload error message.

File

vendor/symfony/http-foundation/File/UploadedFile.php, line 84

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal