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

Breadcrumb

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

function DataPart::fromPath

2 calls to DataPart::fromPath()
HttpBrowser::getUploadedFiles in vendor/symfony/browser-kit/HttpBrowser.php
Recursively go through the list. If the file has a tmp_name, convert it to a DataPart. Keep the original hierarchy.
HttpClientKernel::getBody in vendor/symfony/http-kernel/HttpClientKernel.php

File

vendor/symfony/mime/Part/DataPart.php, line 50

Class

DataPart
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mime\Part

Code

public static function fromPath(string $path, ?string $name = null, ?string $contentType = null) : self {
    return new self(new File($path), $name, $contentType);
}
RSS feed
Powered by Drupal