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

Breadcrumb

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

function FormDataPart::configurePart

1 call to FormDataPart::configurePart()
FormDataPart::preparePart in vendor/symfony/mime/Part/Multipart/FormDataPart.php

File

vendor/symfony/mime/Part/Multipart/FormDataPart.php, line 91

Class

FormDataPart
Implements RFC 7578.

Namespace

Symfony\Component\Mime\Part\Multipart

Code

private function configurePart(string $name, TextPart $part) : TextPart {
    static $r;
    $r ??= new \ReflectionProperty(TextPart::class, 'encoding');
    $part->setDisposition('form-data');
    $part->setName($name);
    // HTTP does not support \r\n in header values
    $part->getHeaders()
        ->setMaxLineLength(\PHP_INT_MAX);
    $r->setValue($part, '8bit');
    return $part;
}

API Navigation

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