You are here

public function FileFormField::upload in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dom-crawler/Field/FileFormField.php \Symfony\Component\DomCrawler\Field\FileFormField::upload()

Sets the value of the field.

Parameters

string $value The value of the field:

File

vendor/symfony/dom-crawler/Field/FileFormField.php, line 43

Class

FileFormField
FileFormField represents a file form field (an HTML file input tag).

Namespace

Symfony\Component\DomCrawler\Field

Code

public function upload($value) {
  $this
    ->setValue($value);
}