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\PartCode
public static function fromPath(string $path, ?string $name = null, ?string $contentType = null) : self {
return new self(new File($path), $name, $contentType);
}