Amp\Artax\FormBody::addFiles PHP Method

addFiles() public method

Add each element of a associative array as a file field to the form entity body
public addFiles ( array $data, string $contentType = 'application/octet-stream' ) : self
$data array
$contentType string
return self
    public function addFiles(array $data, $contentType = 'application/octet-stream')
    {
        foreach ($data as $key => $value) {
            $this->addFile($key, $value, $contentType);
        }
        return $this;
    }