You are here

private function RequestBuilder::buildMultiPart in Auth0 Single Sign On 8.2

Return value

array

1 call to RequestBuilder::buildMultiPart()
RequestBuilder::call in vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php

File

vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php, line 423

Class

RequestBuilder
Class RequestBuilder

Namespace

Auth0\SDK\API\Helpers

Code

private function buildMultiPart() {
  $multipart = [];
  foreach ($this->files as $field => $file) {
    $multipart[] = [
      'name' => $field,
      'contents' => fopen($file, 'r'),
    ];
  }
  foreach ($this->form_params as $param => $value) {
    $multipart[] = [
      'name' => $param,
      'contents' => $value,
    ];
  }
  return $multipart;
}