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

Breadcrumb

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

function ServerRequestInterface::getUploadedFiles

Retrieve normalized file upload data.

This method returns upload metadata in a normalized tree, with each leaf an instance of Psr\Http\Message\UploadedFileInterface.

These values MAY be prepared from $_FILES or the message body during instantiation, or MAY be injected via withUploadedFiles().

Return value

array An array tree of UploadedFileInterface instances; an empty array MUST be returned if no data is present.

1 method overrides ServerRequestInterface::getUploadedFiles()
ServerRequest::getUploadedFiles in vendor/guzzlehttp/psr7/src/ServerRequest.php
Retrieve normalized file upload data.

File

vendor/psr/http-message/src/ServerRequestInterface.php, line 137

Class

ServerRequestInterface
Representation of an incoming, server-side HTTP request.

Namespace

Psr\Http\Message

Code

public function getUploadedFiles() : array;

API Navigation

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