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

Breadcrumb

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

function Psr17Factory::createStreamFromFile

Overrides StreamFactoryInterface::createStreamFromFile

2 calls to Psr17Factory::createStreamFromFile()
Psr17Factory::createServerRequestFromGlobals in vendor/php-http/discovery/src/Psr17Factory.php
Psr17Factory::createUploadedFileFromSpec in vendor/php-http/discovery/src/Psr17Factory.php
Create and return an UploadedFile instance from a $_FILES specification.

File

vendor/php-http/discovery/src/Psr17Factory.php, line 120

Class

Psr17Factory
A generic PSR-17 implementation.

Namespace

Http\Discovery

Code

public function createStreamFromFile(string $filename, string $mode = 'r') : StreamInterface {
    $factory = $this->streamFactory ?? $this->setFactory(Psr17FactoryDiscovery::findStreamFactory());
    return $factory->createStreamFromFile($filename, $mode);
}

API Navigation

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