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

Breadcrumb

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

function UploadedFile::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/psr-http-message-bridge/Factory/UploadedFile.php \Symfony\Bridge\PsrHttpMessage\Factory\UploadedFile::__construct()
  2. 11.1.x vendor/symfony/http-foundation/File/UploadedFile.php \Symfony\Component\HttpFoundation\File\UploadedFile::__construct()

Parameters

StreamInterface|string|resource $streamOrFile:

File

vendor/guzzlehttp/psr7/src/UploadedFile.php, line 63

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

public function __construct($streamOrFile, ?int $size, int $errorStatus, ?string $clientFilename = null, ?string $clientMediaType = null) {
    $this->setError($errorStatus);
    $this->size = $size;
    $this->clientFilename = $clientFilename;
    $this->clientMediaType = $clientMediaType;
    if ($this->isOk()) {
        $this->setStreamOrFile($streamOrFile);
    }
}

API Navigation

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