Amp\Artax\FormBody::addFiles PHP 메소드

addFiles() 공개 메소드

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
리턴 self
    public function addFiles(array $data, $contentType = 'application/octet-stream')
    {
        foreach ($data as $key => $value) {
            $this->addFile($key, $value, $contentType);
        }
        return $this;
    }